Skip to content

Instantly share code, notes, and snippets.

View Textras's full-sized avatar

Textras Textras

View GitHub Profile
@SleepWalker
SleepWalker / swipe.js
Created September 30, 2015 04:59
A simple swipe detection on vanilla js
var touchstartX = 0;
var touchstartY = 0;
var touchendX = 0;
var touchendY = 0;
var gesuredZone = document.getElementById('gesuredZone');
gesuredZone.addEventListener('touchstart', function(event) {
touchstartX = event.screenX;
touchstartY = event.screenY;
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = '[email protected]'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }
@aschuch
aschuch / index.html
Created March 28, 2013 16:34
CSS3 pulsing dots, http://jsfiddle.net/24GXr/ and with fade in and fade out http://jsfiddle.net/qnN6B/
<div class="pulse green"></div>
<div class="pulse yellow"></div>
<div class="pulse red"></div>