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
body:before { | |
position: fixed; | |
content: "No Breakpoint"; | |
background: white; | |
color:black; | |
line-height: 1; | |
text-align: center; | |
white-space: nowrap; | |
vertical-align: baseline; |
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
/* Define two variables as the loop limits */ | |
@from : 0; | |
@to : 10; | |
/* Create a Parametric mixin and add a guard operation */ | |
.loop(@index) when(@index =< @to) { | |
/* As the mixin is called CSS is outputted */ | |
div:nth-child(@{index}) { | |
top: unit(@index * 100, px); |
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 formatSeconds(seconds, format) { | |
var ms = Math.floor((seconds*1000) % 1000); | |
var s = Math.floor(seconds%60); | |
var m = Math.floor((seconds*1000/(1000*60))%60); | |
var strFormat = format || "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
jQuery.Animation( | |
{'test' : 0}, // 'element' | |
{'test' : 100}, // match props in 'element' | |
{ | |
duration:100, //standard options | |
step : function(a) { | |
console.log(a); //step | |
} | |
} | |
); |
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
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
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
<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="[email protected]" /> | |
</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
$.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}) |