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
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var browserify = require('gulp-browserify'); | |
var uglify = require('gulp-uglify'); | |
var paths = { | |
script: 'lib/PasswordWidget.js', | |
}; | |
function isProduction() { |
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
web: bin/hubot -a irc --name jane --alias 'scfjane' |
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
// My object err.. function, ya know. | |
function MyObject(options) { | |
if (!options) { | |
options = {}; | |
} | |
var default_options = { | |
foo: 'foo', | |
bar: 'bar' | |
}; |
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
realdir="/home/.ecryptfs/$USER/.ssh" | |
edir="$HOME/.ssh" | |
link_files=(authorized_keys authorized_keys2 authorized_hosts known_hosts) | |
mkdir -m 700 $realdir | |
for file in ${link_files[@]}; do | |
if [ -e $edir/$file ]; then | |
cp $edir/$file $realdir/$file | |
chmod 600 $realdir/$file |
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 | |
tmpdir=`mktemp -dt ios-sim.XXX` | |
buildpath="./build/Release/ios-sim" | |
destdir="$HOME/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/iphone" | |
success=false | |
pushd $tmpdir | |
git clone git@github.com:phonegap/ios-sim.git . |
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
{ | |
"plugins": [ | |
"tiddlywiki/tiddlyweb", | |
"tiddlywiki/filesystem", | |
"tiddlywiki/codemirror", | |
"tiddlywiki/highlight" | |
], | |
"themes": [ | |
"tiddlywiki/vanilla", | |
"tiddlywiki/snowwhite" |
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
function Monad(data) { this.data = data; } | |
Monad.prototype.bind = function(context, functionName) { | |
return new Monad(context[functionName](this.data)); | |
}; | |
exports.name = 'jira'; | |
exports.params = [{name: 'ticket'}]; | |
exports.run = function(ticket) { | |
if (!ticket) { | |
ticket = new Monad('currentTiddler') |
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
Uncaught TypeError: Cannot read property 'replace' of undefined $:/core/modules/widgets/widget.js:140 | |
Widget.substituteVariableReferences $:/core/modules/widgets/widget.js:140 | |
Widget.getVariable $:/core/modules/widgets/widget.js:101 | |
(anonymous function) $:/core/modules/widgets/widget.js:223 | |
$tw.utils.each (index):4030 | |
Widget.computeAttributes $:/core/modules/widgets/widget.js:221 | |
SetWidget.render $:/core/modules/widgets/set.js:32 | |
(anonymous function) $:/core/modules/widgets/widget.js:338 | |
$tw.utils.each (index):4026 | |
Widget.renderChildren $:/core/modules/widgets/widget.js:337 |
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
"use strict" | |
gulp = require("gulp") | |
$ = require("gulp-load-plugins")() | |
gulp.task "styles", -> | |
gulp.src("app/styles/main.scss") | |
.pipe($.sass()) | |
.pipe($.autoprefixer("last 1 version")) | |
.pipe(gulp.dest(".tmp/styles")) |
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
# A jQuery plugin to add an X to the text input to clear it's content. | |
# Uses bootstrap for styling and glyphicons. | |
# | |
# ## Options | |
# | |
# icon - The glyphicon name (including the `glyphicon-` prefix. See examples. | |
# Use `false` to disable icon. Default `glyphicon-remove`. | |
# html - Any custom HTML you wish to have in the button. Default none. | |
# | |
# ## Examples |
OlderNewer