This file contains hidden or 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
| j=0; for i in *.png; do ((j = $j+1)); k=$j".png"; mv $i $k; done |
This file contains hidden or 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
| secondsToTimeString = function (seconds) { | |
| var ms = Math.floor((seconds*1000) % 1000); | |
| var s = Math.floor(seconds%60); | |
| var m = Math.floor((seconds*1000/(1000*60))%60); | |
| var strFormat = "MM:SS:XX"; | |
| if(s < 10) s = "0" + s; | |
| if(m < 10) m = "0" + m; | |
| if(ms < 10) ms = "0" + ms; |
This file contains hidden or 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
| app.get('/help', function(req, res){ | |
| res.send('some help'); | |
| }); | |
| app.get('/search/:query/p:page', function(req, res){ | |
| var query = req.params.query | |
| , page = req.params.page; | |
| res.send('search "' + query + '", page ' + (page || 1)); | |
| }); |
This file contains hidden or 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
| $.fn.raty.defaults.click = function(s,e) { | |
| $(this).siblings(".text").text(s); | |
| }; | |
| <div class="star"></div><p class="text"></p> | |
| $(".star").each(function(i) { | |
| var target = $(this); | |
| target.raty({scoreName: "score" + i}) |
This file contains hidden or 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
| <form action="/login" method="post" class="form-horizontal"> | |
| <div class="control-group"> | |
| <label class="control-label" for="inputEmail">Email:</label> | |
| <div class="controls"> | |
| <input type="email" name="email" placeholder="someone@example.com" /> | |
| </div> | |
| </div> | |
| <div class="control-group"> | |
| <label class="control-label" for="password">Password</label> | |
| <div class="controls"> |
This file contains hidden or 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
| http://blog.jonnay.net/archives/423-More-ASCII-Bunnies..html | |
| (\(\ | |
| ( - -) | |
| ((') (') | |
| (\_/) | |
| ('.') | |
| (')(') |
This file contains hidden or 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 (a,b){return(1e15+a+"").slice(-b)} |
This file contains hidden or 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 (a,b){return(1e15+a+"").slice(-b)} |
This file contains hidden or 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 | |
| python -m SimpleHTTPServer |
This file contains hidden or 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
| jQuery.Animation( | |
| {'test' : 0}, // 'element' | |
| {'test' : 100}, // match props in 'element' | |
| { | |
| duration:100, //standard options | |
| step : function(a) { | |
| console.log(a); //step | |
| } | |
| } | |
| ); |
OlderNewer