Skip to content

Instantly share code, notes, and snippets.

Avatar

James Kusachi jkusachi

View GitHub Profile
View bootstrap.js
/*!
* Casper is a navigation utility for PhantomJS.
*
* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
*
* Copyright (c) 2011-2012 Nicolas Perriault
*
* Part of source code is Copyright Joyent, Inc. and other Node contributors.
*
View phantomjs_intaller.sh
#!/bin/bash
sudo apt-get remove phantomjs
sudo unlink /usr/local/bin/phantomjs
sudo unlink /usr/local/share/phantomjs
sudo unlink /usr/bin/phantomjs
cd /usr/local/share
View tag-c.js
javascript:(function()%7Bif(typeof __tealium_tagcompanion%3D%3D%27undefined%27)%7B__tealium_tagcompanion%3Ddocument.createElement(%27SCRIPT%27)%3B__tealium_tagcompanion.type%3D%27text/javascript%27%3B__tealium_tagcompanion.src%3D%27//tealium.hs.llnwd.net/o43/utui/utui.tagcompanion.js%3Fv%3D%27%2BMath.random()%3Bdocument.getElementsByTagName(%27head%27)%5B0%5D.appendChild(__tealium_tagcompanion)%3B%7D%7D)()%3B
@jkusachi
jkusachi / fade-in-fade-out.js
Last active Aug 29, 2015
Javascript Image Fade In / Fade Out
View fade-in-fade-out.js
(function($){
'use strict';
function scrolled(){
var scrollTop = $(window).scrollTop(),
windowBottom = scrollTop + $(window).height(),
images_in_view = $('img:in-viewport');
//for each image in view, fade out on bottom
View gulpfile-starter.js
var gulp = require('gulp'),
sass = require('gulp-sass'),
livereload = require('gulp-livereload'),
gutil = require('gulp-util'),
plumber = require('gulp-plumber'),
uglify = require('gulp-uglify');
var sources = {
styles: ['./sass/**/**/*.scss'],
scripts: ['./js/**/**/*.js']
View DWGL-5162
/* Added to Auto News Flyout */
.producthits .section{ padding-bottom: 20px; }
You can’t perform that action at this time.