- [by. Select elements][1]
- [fragment. Turn HTML into DOMFragments][2]
- [class-list. Cross browser HTML5 classList implementation][3]
- [dom-walk. Traverse the DOM in tree order][4]
- [xhr. Minimal cross browser, cross domain XHR][5]
- [insert. Cross browser DOM4 insertion methods][6]
- [to-array. Convert nodelists into arrays][7]
- [hidden. Cross browser HTML5 hidden property][8]
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
/**badges**/ | |
@import url('http://fonts.googleapis.com/css?family=Lobster'); @font-face { font-family: 'ModernPictogramsNormal'; src: url("http://www.bradysammons.com/codepen/fonts/modernpics-webfont.eot"); src: url("http://www.bradysammons.com/codepen/fonts/modernpics-webfont.eot?#iefix") format("embedded-opentype"), url("http://www.bradysammons.com/codepen/fonts/modernpics-webfont.woff") format("woff"), url("http://www.bradysammons.com/codepen/fonts/modernpics-webfont.ttf") format("truetype"), url("http://www.bradysammons.com/codepen/fonts/modernpics-webfont.svg#ModernPictogramsNormal") format("svg"); font-weight: normal; font-style: normal; } | |
/* line 13, ../sass/screen.scss */ body { background: url("http://www.vancouverad.com/bgimg/img/noise_pattern_with_crosslines.png") repeat; font-family: helvetica, arial, sans-serif; } | |
/* line 17, ../sass/screen.scss */ | |
wrapper { width: 900px; margin: 10px auto 0 auto; } | |
/* line 22, ../sass/screen.scss */ .cool_btn1 { width: 190px; height: 190px; margin: 15px 15px 15 |
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
# Display your coderwall.com badges without using a library like jQuery | |
# CONFIGURE your username | |
username = #'change me' - remove hashtag after changing and delete this helper text | |
url = "http://www.coderwall.com/#{username}.json?callback=processJSON" | |
loadJSON = (url) -> | |
head = document.getElementsByTagName('head')[0] | |
newScript = document.createElement('script') |
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
@main-font-size: 16px; | |
.x-rem (@property, @value) { | |
// This is a workaround, inspired by https://github.com/borodean/less-properties | |
@px-fallback: @value * @main-font-size; | |
-: ~`(function () { return ';@{property}: @{px-fallback}'; }())`; | |
-: ~`(function () { return ';@{property}: @{value}rem'; }())`; | |
} |
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
var loader = new game.THREE.JSONLoader( true ) | |
loader.load( "/horse.js", function( geometry ) { | |
window.horseGeometry = horseGeometry = geometry | |
}) | |
function Horse() { | |
this.radius = 600 | |
this.theta = 0 | |
this.duration = 1000 | |
this.keyframes = 15 |
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
# Your awesome Koding App Code | |
{nickname} = KD.whoami().profile | |
class MainView extends JView | |
constructor:-> | |
super | |
@header = new KDHeaderView | |
type: "big" |
This document has been modified from its [original format][m1], which was written by Ning Shang ([email protected]). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].
When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes
This gist assumes:
- you have a local git repo
- with an online remote repository (github / bitbucket etc)
- and a cloud server (Rackspace cloud / Amazon EC2 etc)
- your (PHP) scripts are served from /var/www/html/
- your webpages are executed by apache
- apache's home directory is /var/www/
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/sh | |
### a command line tool to access https://gist.github.com | |
## by Jakukyo Friel <[email protected]> and licensed under GPL v2 | |
## Ref: | |
# github API: https://develop.github.com/v3/ | |
# gist API: https://developer.github.com/v3/gists/ | |
# pygist: https://github.com/mattikus/pygist |
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
/** | |
* Paper Stack | |
*/ | |
* { box-sizing: border-box; } | |
a { text-decoration: none; color: #AC190C; } | |
body { | |
font-family: Helvetica Neue, Helvetica, Arial, sans-serif; | |
background: url("http://subtlepatterns.com/patterns/wood_pattern.png"); | |
background-color: #fff; |