Skip to content

Instantly share code, notes, and snippets.

View jaxgeller's full-sized avatar

Jackson Geller jaxgeller

View GitHub Profile
@jaxgeller
jaxgeller / sean.html
Last active February 12, 2017 20:37
<html>
<body>
<div id="parttwoimg"><img src="./images/parttwo_1.jpg" width="300"></div>
<script>
var onScrollHandler = function() {
var yourImageElement = document.querySelector('#parttwoimg img')
var newImageUrl = yourImageElement.src;
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
if (scrollTop > 100) {
newImageUrl = "./images/sequence/sequence_1.jpg"
@jaxgeller
jaxgeller / tweezer-demo-1.es6
Last active January 8, 2016 15:14
tweezer-
document.querySelector('#animate-height-button')
.onclick = () => {
if (!isRunning) {
new Tweezer({
start: animatedHeight.getBoundingClientRect().height,
end: grow(shouldGrow)
})
.on('tick', v=> animatedHeight.style.height = v +'px')
.on('done', ()=> {
shouldGrow = !shouldGrow

Keybase proof

I hereby claim:

  • I am jaxgeller on github.
  • I am jaxgeller (https://keybase.io/jaxgeller) on keybase.
  • I have a public key whose fingerprint is A294 1661 E996 9A12 B495 0755 882F 9C7B 77F9 0761

To claim this, I am signing this object:

@jaxgeller
jaxgeller / kill_by_port.sh
Created November 9, 2015 15:10
Kill by port number
kill -9 $(lsof -i:PORT | xargs | awk '{print $11}')
@jaxgeller
jaxgeller / linuxtools.sh
Created September 15, 2015 21:05
Install linux tools ubuntu
apt-get update && apt-get upgrade -y && \
apt-get install -y \
linux-tools-common
linux-tools-generic
linux-cloud-tools-generic
linux-tools-`uname -r`
linux-cloud-tools-`uname -r`
@jaxgeller
jaxgeller / blank_instance
Last active August 29, 2015 14:24
Run blank ubuntu instance via docker
#assuming if /bin/bash
# to run and bash it
docker run -i -t ubuntu /bin/bash
# if already running
docker exec id -it /bin/bash
@jaxgeller
jaxgeller / gist:14b6e0b7abd0219a38f1
Created July 8, 2015 16:12
Disable Cyberduck Bonjour Notifications
# in terminal
defaults write ch.sudo.cyberduck rendezvous.enable false
@jaxgeller
jaxgeller / ember-content-security.js
Created June 2, 2015 14:18
Ember Content Security
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'identity-automation',
environment: environment,
baseURL: '/',
locationType: 'auto',
contentSecurityPolicy: {
'font-src': "'self' data: fonts.gstatic.com",
@jaxgeller
jaxgeller / gist:cf355254810f090f51ed
Created May 16, 2015 17:56
Disable coffeescript for Rails
config.generators do |g|
g.javascript_engine :js
end