View reset.css
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
// Modified Meyer reset | |
// Universal selector works great! | |
// See: http://blogs.telerik.com/kendoui/posts/12-09-28/css_tip_star_selector_not_that_bad | |
*, *::before, *::after { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
border-collapse: collapse; | |
border-spacing: 0; |
View micro-reset.scss
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
// micro-reset.scss | |
// | |
// Based on the Meyer reset | |
// Universal selector works great! | |
// See: http://blogs.telerik.com/kendoui/posts/12-09-28/css_tip_star_selector_not_that_bad | |
*, *::before, *::after { | |
margin: 0; | |
padding: 0; | |
border: 0; |
View apiV2.rb
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
require 'net/http' | |
require 'json' | |
# For now you must use a trusted API client, never place your API credentials | |
# for a trusted client in an insecure location. Especially not in JavaScript on | |
# the client side. | |
client_key = "YOUR_API_CLIENT_KEY" | |
client_secret = "YOUR_API_CLIENT_SECRET" | |
host = "YOUR_SUBDOMAIN.uservoice.com" |
View angular.visibility.js
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
angular.module('dom.util', []) | |
.service('inDom', function($document) { | |
return function inDom(element) { | |
var el = angular.element(element); | |
return $document[0].body.contains(el[0]); | |
}; | |
}) | |
.service('isVisible', function(inDom) { |
View stealth.bas
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
' $DYNAMIC | |
DEFINT A-Z | |
DECLARE SUB GLoad (FileName AS STRING, GLoadArray() AS INTEGER) | |
DECLARE SUB GSave (x1 AS SINGLE, y1 AS SINGLE, x2 AS SINGLE, y2 AS SINGLE, FileName AS STRING) | |
DECLARE SUB DoWarHead () | |
DECLARE SUB DrawWarHead (X AS INTEGER, Y AS INTEGER) | |
DECLARE SUB DoLasers () | |
DECLARE SUB AddLaser (X AS INTEGER, Y AS INTEGER, Speed AS INTEGER, typ AS INTEGER, c AS INTEGER) | |
DECLARE SUB KillLaser (ID AS LONG) | |
DECLARE SUB PlayGame () |
View smiley.bas
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
DECLARE SUB EraseBackToGB (X AS INTEGER, Y AS INTEGER) | |
DECLARE SUB AddRoundAbout (X AS INTEGER, Y AS INTEGER, Dir AS STRING) | |
DECLARE SUB DoRoundAbouts () | |
'The SMiLEY Game | |
'$DYNAMIC | |
DECLARE SUB AnimateLevWarp () | |
DECLARE SUB AnimateSmiley () | |
DECLARE SUB AddBouncer (X AS INTEGER, Y AS INTEGER, v AS INTEGER, Dir AS STRING) | |
DECLARE SUB AddCaterpillar (X AS STRING, Y AS STRING, Dir AS STRING) | |
DECLARE SUB AddCoin (X AS INTEGER, Y AS INTEGER) |
View position.js
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 getViewportOffset(element) { | |
var node = element | |
, left = node.offsetLeft | |
, top = node.offsetTop | |
; | |
node = node.parentNode; | |
do { | |
var styles = getComputedStyle(node); |
View SassMeister-input.scss
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
// ---- | |
// Sass (v3.3.9) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
/* Because of the http prefix on URL, Sass will interpret this as a regular | |
* CSS import directive. See output... */ | |
@import "http://wiseheartdesign.com/stylesheets/blankslate.css"; |
View _brightness.scss
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
// Brightness math based on: | |
// http://www.nbdtech.com/Blog/archive/2008/04/27/Calculating-the-Perceived-Brightness-of-a-Color.aspx | |
$red-magic-number: 241; | |
$green-magic-number: 691; | |
$blue-magic-number: 68; | |
$brightness-divisor: $red-magic-number + $green-magic-number + $blue-magic-number; | |
@function brightness($color) { | |
// Extract color components |
View SassMeister-input.scss
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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
// | |
// map-fetch($map, $keys) | |
// | |
// An easy way to fetch a deep value in a multi-level map. Works much like | |
// map-get() except that you pass multiple keys as the second parameter to |
NewerOlder