Skip to content

Instantly share code, notes, and snippets.

View dtothefp's full-sized avatar

David Fox-Powell dtothefp

  • Flexport
  • United States
View GitHub Profile
@dtothefp
dtothefp / SassMeister-input.scss
Created May 27, 2014 03:58
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
@mixin testing($properties) {
@if(type-of(nth($properties, 1)) == list) {
@each $property, $value in $properties {
#{$property}: $value;
{
"_id" : ObjectId("536bdca6a33a39845cfe04e2"),
"_wysihtml5_mode" : "1",
"about" : "",
"branderatiPointPerson" : "52012822257e679e1e000035",
"cpHost" : "cp.branderati.com",
"email" : "tech@branderati.com",
"emailTester" : "",
"email_template" : "",
"emails" : {
@dtothefp
dtothefp / SassMeister-input.scss
Created June 17, 2014 14:39
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
$elements: project-covers, user-tooltip, sorting-bar, modals, navigation;
$modal-elements: modal__header, modal__content, modal__footer;
@mixin make-z( $class, $value) {
.#{$class} {
@dtothefp
dtothefp / SassMeister-input.scss
Created June 18, 2014 00:33
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
// libsass version not seperating properties in each loop
@mixin sh--animate($properties, $transition, $initialize: true) {
@if ($initialize == true) {
& {
@dtothefp
dtothefp / sample.js
Created July 10, 2014 16:23
Node Spawn
// node executable file phantom_sample.js
var spawn = require('child_process').spawn;
var phantom = require('phantomjs');
var excPath = phantom.path;
var path = require('path');
var args = [
path.resolve( __dirname, 'phantom_exc.js')
];
@dtothefp
dtothefp / node_promises.js
Created July 11, 2014 19:12
node promises
function readImg(path) {
var deferred = Q.defer();
fs.readFile(path, function(err, original_data){
if(!err) {
deferred.resolve(original_data.toString('base64'));
} else {
deferred.reject(err);
}
});
return deferred.promise;
@dtothefp
dtothefp / phantomcss.js
Created July 22, 2014 14:52
test for phantomcss
/*
Author: David Fox-Powell
Company: Optimizely
Last updated date: 20 July 2014
URL: https://github.com/dtothefp/phantomcss-gitdiff
*/
var fs = require('fs');
var _src = '.'+fs.separator+'screenshots';
@dtothefp
dtothefp / SassMeister-input.scss
Created July 23, 2014 02:00
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
@-webkit-keyframes FadeIn {
0% { opacity:0;}
100% {opacity:0; }
}
$list: button-1 button-2 button-3;
window.optly = window.optly || {};
window.optly.mrkt = window.optly.mrkt || {};
window.optly.mrkt.modal = {};
var History = window.History || {},
Modernizr = window.Modernizr || {},
$modalElms = $('[data-optly-modal]'),
$elms = {},
baseUrl = document.URL,
initialTime = Date.now(),
lastPop,
set nocompatible " Must be first line
" The next three lines ensure that the ~/.vim/bundle/ system works
filetype on
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()
" Load bundles
" DEPS