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 "mathsass/dist/math.scss"; | |
$radius: 12px; | |
$colors : ( | |
1: #746f86, | |
2: #746f86, | |
3: #a16e8f, | |
4: #a16e8f, | |
5: #a9637b, | |
6: #a9637b, |
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 total = 0; | |
$('.results-list tr').not('thead tr').each( function() { | |
var amount = $(this).find('td').eq(4).text(); | |
amount = amount.replace('$', ''); | |
total = total + parseFloat( amount ); | |
}); | |
console.log( 'total amount: $' + total.toFixed( 2 ) + ', lol' ); |
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
/** | |
* radiating circle object in one line of html and a few more lines of css | |
*/ | |
body { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
display: -webkit-box; | |
-webkit-box-align: center; |
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
{if member_group == '1'} | |
<div id="site-performance" style="position: fixed; right: 0; bottom: 0; padding: 7px; background: rgba(0,0,0,0.7); color: white; font-family: Verdana, sans-serif; z-index: 999; "> | |
<span id="site-total-queries">{total_queries}</span> queries<br /> | |
<span id="site-elapsed-time">{elapsed_time}</span> seconds | |
</div> | |
{/if} |
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
\}\n(#|\.|[A-Z]|/|:|\*) |
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
<!-- store in _includes/table --> | |
<table> | |
<tr class="header"> | |
{% for headerItem in site.table[tableName].headers %} | |
<th>{{ headerItem }}</th> | |
{% endfor %} | |
</tr> | |
{% for dataRow in site.table[tableName].data %} |
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
<textarea style="height: 100%; width: 100%; background: #222; padding: 5% 25%; color: #eee;"></textarea> |
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 | |
# takes an argument of an undesired prefix then removes it from all files in dir | |
# if no arg is passed, prompt for name | |
if [ $# -eq 0 ] | |
then | |
read -p 'What prefix do you want to remove?: ' | |
prefix=$REPLY | |
else | |
prefix=$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
// breakpoint helpers based on bootstrap's breakpoints | |
@mixin xs { | |
@media #{screen} and (max-width: #{$screen-xs-max}) { | |
@content; | |
} | |
} | |
@mixin sm { | |
@media #{screen} and (min-width: #{$screen-sm-min}) and (max-width: #{$screen-sm-max}) { |
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 | |
projectFile=$(find $1 -name "*.sublime-project" -maxdepth 1) | |
echo $projectFile | |
if [ $projectFile ] | |
then | |
subl $projectFile | |
else | |
subl $1 | |
fi |
OlderNewer