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
<div class="wrapper"> | |
<div class="a1"></div> | |
<div class="a2"></div> | |
<div class="a3"></div> | |
<div class="two-third"></div> | |
<div class="one-third"></div> | |
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
/** | |
* Check if Flash is installed & enabled | |
* http://stackoverflow.com/questions/998245/how-can-i-detect-if-flash-is-installed-and-if-not-display-a-hidden-div-that-inf | |
* | |
* @return {Boolean} | |
*/ | |
var hasFlash = function() { | |
var has_flash = false; | |
try { |
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 ModuleA = require('module-a'); | |
function ModuleAExt() { | |
ModuleA.prototype.change_name = function(name) { | |
this.name = name; | |
}; | |
return ModuleA; | |
} |
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 __bind = function(fn, me) { | |
return function() { return fn.apply(me, arguments); }; | |
}; |
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
#!/usr/bin/env bash | |
if ! [[ -a "VERSION" ]]; then | |
echo "VERSION file initialized" | |
touch "VERSION" | |
echo "0.0.0" > "VERSION" | |
fi | |
version=$(cat VERSION) | |
version_arr=(${version//./ }) |
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
// | |
// Shake horizontally | |
// | |
// Use: | |
// @include animation(shake-x 1s); | |
// | |
@include keyframes(shake-x) { | |
0%, 100% { | |
@include translateX(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
<?php if ( wp_is_mobile() ) : ?> | |
<!-- HTML for mobile --> | |
<?php else : ?> | |
<!-- HTML for not mobile() --> | |
<?php endif; ?> |
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 the main Apache HTTP server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# | |
# Do NOT simply read the instructions in here without understanding | |
# what they do. They're here only as hints or reminders. If you are unsure |
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
class Parent | |
def self.name(name) | |
@name = name | |
puts @name | |
end | |
def whoami | |
puts "I'm the parent #{@name}" | |
end |
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
// | |
// Spiderman is a mixin to absolute position an element | |
// in his first relative parent, top to bottom, left to right. | |
// | |
// @param $offset Offset from the edge | |
// | |
@mixin spiderman($offset: 0) { | |
bottom: $offset; | |
left: $offset; | |
position: absolute; |