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
[ | |
{ | |
featureType: "landscape.natural", | |
elementType: "all", | |
stylers: [ | |
{ hue: "#ffff00" }, | |
{ lightness: 34 }, | |
{ saturation: 64 } | |
] | |
},{ |
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 imgs = document.getElementsByTagName("img"); | |
var x = imgs.length; | |
while (x--){ | |
console.log(imgs[x].getAttribute("src")); | |
} |
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
NODE_PATH=/usr/local/lib/node_modules | |
export PATH=/usr/local/bin:/usr/local/lib/node_modules:$PATH | |
# enable the git bash completion commands | |
source ~/.git-completion.sh | |
# DUURRRRTY | |
export GIT_PS1_SHOWDIRTYSTATE=true |
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
(ns masondesu.main) | |
(def x "foo") | |
(.log js/console x) ;; logs "foo". outputs `console.log(masondesu.main.x)` | |
(def mason (js-obj name "Mason Stewart" beardPower 5000)) | |
(.log js/console mason.name ) ;; throws error. outputs `console.log(mason.name)` |
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
<script type="text/javascript"> | |
$(document).ready(function(){ | |
var background = $('#backstretch img'); | |
var realBG = background.attr('src'); | |
$('.byline strong').hover(function(){ | |
background.attr('src','http://s1.nextround.net/wp-content/uploads/2009/08/chucknorris_gif1.gif') | |
}, function(){ | |
background.attr('src', realBG) | |
}); | |
}); |
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
// Now you can add triangles to anything! (^_-)-☆ | |
// Just use the @include triangle($color, $position) mixin. | |
// Border colors are automatically created based on the bg | |
// color you provide, and $position refers to whether the | |
// triangle is on 'top' or 'bottom'. | |
@mixin triangle($bg_color: #fafafa, $direction: top, $vertical-offset: 10px, $horizontal-offset: 15px, $border_color: "") { | |
// If no $border_color was passed in, let's set to to a 35% darker version of $bg_color | |
@if $border_color == "" { | |
$border_color: darken($bg_color, 25%); |
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 is a peek behind the curtain at @zaarly's epic-fantasy-heavy-metal-themed internal styleguide, better known as Hammer. | |
// | |
// With this, you can add the .fancy class to a symbolset span inside of a heading tag to add a nice circular background. | |
// Some adjustments to the positioning of a particular glyph may be necessary. | |
// Each :before is set to postion: relative, so fine-tuning a .fancy glyph is simple, and won't affect the position of the circle. | |
// | |
// Example markup (in HAML): | |
// %h1 | |
// %span.ss-check.fancy | |
// Cool Guy Settings™ saved! |
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
<html> | |
<style type="text/css"> | |
.food { | |
width: 200px; | |
height: 200px; | |
margin: 50px auto; | |
border-radius: 115px 26px; | |
} | |
/* Greenish lime color */ |
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
<html> | |
<head> | |
<title>My Great Ice Cream</title> | |
<style type="text/css"> | |
.sidebar { | |
width: 50%; | |
float: left; | |
} |
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
<html> | |
<head> | |
<title>My Great Ice Cream</title> | |
<style type="text/css"> | |
.sidebar { | |
width: 50%; | |
float: left; | |
} |