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 () { | |
return document.getElementById('app_name').value; | |
} |
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 () { | |
return document.getElementsByName('accept_terms')[0].checked | |
} |
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 | |
sudo chflags -R nouchg ~/Dropbox ~/.dropbox ~/.dropbox-master | |
sudo chown "$USER" "$HOME" | |
sudo chown -R "$USER" ~/Dropbox ~/.dropbox ~/.dropbox-master | |
sudo chmod -RN ~/.dropbox ~/Dropbox ~/.dropbox-master | |
chmod -R u+rw ~/Dropbox ~/.dropbox ~/.dropbox-master |
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 () { | |
if({{element}}.tagName.toLowerCase() === "form") { | |
var fName = {{element}}.children.namedItem("inf_form_name") | |
if(fName) { | |
return fName.value | |
} else { | |
return false; | |
} | |
} else { | |
return 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
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# look good | |
# set -g default-terminal "xterm-256color" | |
set-option -g default-command "reattach-to-user-namespace -l bash" |
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 kegsandbottles = (function () { | |
var temp; | |
var output = ''; | |
var counter = 0; | |
var numbers = [5, 7]; | |
var exports = function () { | |
exports.start(); | |
}; | |
var templates = { |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress |
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 determinant(m) { | |
var l = m.length - 1; | |
if(l === 0) { | |
return m[0][0]; | |
} else { | |
if(l === 1) { | |
return m[0][0]*m[l][l]-m[0][l]*m[l][0]; | |
} else { | |
return m.reduce(function (p, c, i, a) { | |
var sign = i % 2 === 0 ? 1 : -1; |
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 simulate(element, eventName) | |
{ | |
var options = extend(defaultOptions, arguments[2] || {}); | |
var oEvent, eventType = null; | |
for (var name in eventMatchers) | |
{ | |
if (eventMatchers[name].test(eventName)) { eventType = name; break; } | |
} |