Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
/** | |
* Test Instance/Class Methods on an Account Model | |
*/ | |
var assert = require('assert'), | |
Utils = require('../../support/utils'), | |
Database = require('../../support/database'); | |
describe('Account', function() { |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
BIN = ./node_modules/.bin | |
SRC = $(wildcard src/*.coffee) | |
LIB = $(SRC:src/%.coffee=lib/%.js) | |
build: $(LIB) | |
lib/%.js: src/%.coffee | |
@mkdir -p $(@D) | |
@$(BIN)/coffee -bcp $< > $@ |
var os = require("os"); | |
//Create function to get CPU information | |
function cpuAverage() { | |
//Initialise sum of idle and time of cores and fetch CPU info | |
var totalIdle = 0, totalTick = 0; | |
var cpus = os.cpus(); | |
//Loop through CPU cores |
/* | |
_______ | |
These simple SCSS/SASS mixins for Foundation 4 are made by me to deal with media-queries and have a clean code at the same time! ;) | |
****IMPORTANT**** | |
Due to Foundation 4 uses mobile-first methodology, every $phone-"X" variable in these mixins defines the value for every screen size. | |
$desktop-"X" values overrides $phone-"X" values when the width of the window is 768px and above. |
// | |
// Grid Variables | |
// | |
$total-columns: 24 !default; | |
// Grid Calculation for Percentages | |
@function gridCalc($colNumber, $totalColumns) { | |
@return percentage(($colNumber / $totalColumns)); | |
} |
/* The Grid ---------------------- */ | |
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; } | |
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
.lt-ie9 .row.large-collapse .column, | |
.lt-ie9 .row.large-collapse .columns { padding: 0; } | |
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
.lt-ie9 .row .row.large-collapse { margin: 0; } | |
.lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; } | |
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; } |
// You need to have the following installed: | |
// https://github.com/admc/wd | |
// https://github.com/kriskowal/q | |
var wd = require('wd') | |
, Q = require('q') | |
, request = require('request') | |
, assert = require('assert') | |
, host = "ondemand.saucelabs.com" | |
, port = 80 |
webdriver = require 'wd' | |
repl = require 'repl' | |
Q = require 'q' | |
# webdriverConfig = | |
# host: "ondemand.saucelabs.com" | |
# port: 80 | |
# username: "USERNAME" | |
# password: "KEY" |
javascript:(function(){window.addEventListener('beforeunload',function(){return"Whoa bro, you tried to close me. \n Did you mean to do that?"})})(); |