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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="lambda" | |
alias server='python -m SimpleHTTPServer' |
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
// 6: how could you improve the following code? | |
$(document).ready(function() { | |
$('.foo #bar').css('color', 'red'); | |
$('.foo #bar').css('border', '1px solid blue'); | |
$('.foo #bar').text('new text!'); | |
$('.foo #bar').click(function() { | |
$(this).attr('title', 'new title'); | |
$(this).width('100px'); | |
}); |
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 getAccess = { | |
config : { | |
client_id: '255350354640375', | |
client_secret: '0206d7cd66962dd59d90472d810c3464', | |
successURL: 'http://gotchacode.github.io' | |
}, | |
init: function (config) { |
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
truncate auth_user, auth_message, auth_user_groups, auth_user_user_permissions CASCADE; |
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 console = new Console(); | |
var done = function (this) { | |
console.log('This looks and works sexy'); | |
} |
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
proy.on("all", function (eventName) { | |
object.trigger(eventName); | |
}); | |
book.on({ | |
"change:title": titleView.update, | |
"change:author": authorPane.update, | |
"destroy": bookView.remove | |
}); |
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
proy.on("all", function (eventName) { | |
object.trigger(eventName); | |
}); | |
book.on({ | |
"change:title": titleView.update, | |
"change:author": authorPane.update, | |
"destroy": bookView.remove | |
}); |
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
import {isFunction} from './utils'; | |
class SuperConstructor {} | |
class InjectAnnotation { | |
constructor(...tokens) { | |
this.tokens = tokens; | |
this.isPromise = false; | |
} | |
} |
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
/* gettext library */ | |
var catalog = new Array(); | |
function pluralidx(count) { return (count == 1) ? 0 : 1; } | |
function gettext(msgid) { | |
var value = catalog[msgid]; |
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
// Helper function to urlify links in the text. | |
function urlify(text) { | |
var urlRegex = /(https?:\/\/[^\s]+)/g; | |
return text.replace(urlRegex, function(url) { | |
return text.replace(urlRegex, '<a href="$1" target="_blank">$1</a>'); | |
}) | |
} |
OlderNewer