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
alias lo="ls -lha --color=always -F --group-directories-first | awk '{k=0;for(i=0;i<=8;i++)k+=((substr(\$1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf(\"%0o \",k);print}'" |
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
define(function () { | |
var Bracket = function (element, manager) { | |
this.element = element; | |
this.manager = manager; | |
this.id = parseInt(element.getAttribute('data-id')); // don't rely on this to be unique until a sync() is made | |
this.round = parseInt(element.getAttribute('data-round')); | |
this.rounds = parseInt(element.getAttribute('data-rounds')); | |
this.order = parseInt(element.getAttribute('data-order')); |
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
{ | |
"cmd": ["php", "-f", "$file"], | |
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
"selector": "source.php" | |
} |
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
{ | |
"cmd": ["node", "$file"], | |
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
"selector": "source.js" | |
} |
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
/\@auth (?<model>[a-z0-9_]+)\s?(?<return>[a-z0-9-\.]+)?(\r\n|\r|\n)/i |
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 | |
svn add `svn status .|grep "^?"|awk '{print $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
<p>This is a test paragraph.</p> | |
<h3>This is 3rd level heading</h3> | |
<p>This is a test paragraph.</p> | |
<h4>This is 4th level heading</h4> | |
<p>This is a test paragraph.</p> | |
<h5>This is 5th level heading</h5> | |
<p>This is a test paragraph.</p> | |
<h6>This is 6th level heading</h6> | |
<p>This is a test paragraph.</p> | |
<h2>Basic block level elements</h2> |
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
, process: function () { | |
var scrollTop = this.$scrollElement.scrollTop() + this.options.offset | |
, scrollHeight = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight | |
, maxScroll = scrollHeight - this.$scrollElement.height() | |
, offsets = this.offsets | |
, targets = this.targets | |
, activeTarget = this.activeTarget | |
, i | |
if (scrollTop >= maxScroll) { |
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 load_script(src, callback) { | |
var head = document.getElementsByTagName('head')[0]; | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = src; | |
script.onload = callback; | |
script.onreadystatechange = function() { | |
if (this.readyState == 'loaded' || this.readyState == 'complete') { |
NewerOlder