This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class Calendar { | |
constructor(...args) { | |
this.date = new Date(...args); | |
} | |
get year() { | |
return this.date.getFullYear(); | |
} | |
get month() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install ffmpeg and gifsicle if not exists | |
which ffmpeg > /dev/null || brew install ffmpeg | |
which gifsicle > /dev/null || brew install gifsicle | |
usage () { | |
echo "Usage:" 1>&2 | |
echo " mov2gif [-d delay] [-o 1|2|3] [-r frame_rate] [-w width] input_file" 1>&2 | |
echo "" 1>&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Building V8 for alpine is a real pain. We have to compile from source, because it has to be | |
# linked against musl, and we also have to recompile some of the build tools as the official | |
# build workflow tends to assume glibc by including vendored tools that link against it. | |
# | |
# The general strategy is this: | |
# | |
# 1. Build GN for alpine (this is a build dependency) | |
# 2. Use depot_tools to fetch the V8 source and dependencies (needs glibc) | |
# 3. Build V8 for alpine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'carrierwave' | |
gem 'image_optim_rails' | |
gem 'image_optim_pack' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using MonoTouch.ObjCRuntime; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
namespace CocoaPods | |
{ | |
delegate void WVJBResponseCallback (NSObject responseData); | |
delegate void WVJBHandler (NSObject data, [BlockCallback] WVJBResponseCallback responseCallback); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir project.git | |
cd project.git/ | |
git init --bare | |
git --bare update-server-info | |
git config core.bare false | |
git config core.worktree /path/to/project | |
git config receive.denyCurrentBranch ignore | |
cat > hooks/post-receive | |
#!/bin/sh | |
git checkout -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
expect -f - <<EOD | |
set timeout -1 | |
set pass "YOUR-PASSWORD" | |
spawn ant -f build.xml clean release -Dsdk.dir=$(brew --prefix android-sdk) | |
expect "(store:production.keystore):" { send "\$pass\r" } | |
expect "Please enter password for alias 'mykey':" { send "\$pass\r" } | |
expect eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name=$inputline | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url=$inputline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'mysql2' | |
#------------------------------------ | |
# config | |
#------------------------------------ | |
MYSQL_CONF = { | |
host: 'localhost', | |
username: 'root', |
NewerOlder