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
grunt.initConfig({ | |
concat: { | |
options: { | |
//Get the filepath, format it, put in whatever separator you want, and echo the script itself | |
// src = the actual code of whatever your file is | |
// filepath = Sandstorm, Darude | |
process: function(src, filepath){ | |
var lines = '\n//--------------------------------------------------\n' | |
var final_name = filepath.substring(filepath.lastIndexOf('/js/') + 1, filepath.length);//.join('-'); | |
return( lines |
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 Bling(ice){ | |
this.ice = ice; | |
this.thing(); | |
$('.do_thing').on('click', function(){ | |
console.log(this.ice); | |
}); | |
} |
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
//trollolololololol | |
@function gray($shade){ | |
@debug "You spelled *grey* wrong"; | |
@return rgb($shade, $shade, $shade); | |
} | |
@function grey($shade){ | |
@debug "You spelled *gray* wrong"; | |
@return rgb($shade, $shade, $shade); | |
} |
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
$_helvetica: ( | |
'font-family': #{"Helvetica", sans-serif}, | |
'font-weight': ( | |
'default': 300, | |
'light': 100, | |
'normal': 300, | |
'semi-bold': 500, | |
'bold': 700 | |
), | |
'line-height': 1.3, |
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
@keyframes content-peep{ | |
//bounce frames | |
} | |
.content{ | |
margin-top: 100vh; | |
&-is_peeping{ | |
animation: content-peep 200ms 1 500ms; | |
} |
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 [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi |
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
// This was set up using the help of this tut: | |
//http://merrickchristensen.com/articles/gruntjs-workflow.html | |
module.exports = function(grunt) { | |
// grunt.loadNpmTasks('grunt-contrib-jshint'); // load lint | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), |
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
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon | |
# Thumbnails | |
._* |
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
<?php | |
/** | |
* Given a post ID, return the permalink for the original size post thumbnail | |
* | |
* @param int $ID post id | |
* @return string deep link for a post thumbnail | |
*/ | |
function _thumb_link($ID) { | |
$toReturn = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); | |
return $toReturn[0]; |
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
/** | |
* Clear a specific get param from a url and replace it in window history | |
*/ | |
function clearParam(param) { | |
// Get the querystring as a hash | |
var params = window.queryParams(); | |
// Remove the param | |
delete params[param]; | |
// Quickest way to remove the whole querystring, which is fine because we're rebuidling it anyway | |
var href = window.location.href.split("?")[0]; |