Skip to content

Instantly share code, notes, and snippets.

View leek's full-sized avatar

Chris Jones leek

View GitHub Profile
/**
* Disable and enable event on scroll begin and scroll end.
* @see http://www.thecssninja.com/javascript/pointer-events-60fps
*/
(function(r, t) {
window.addEventListener('scroll', function() {
// User scrolling so stop the timeout
clearTimeout(t);
// Pointer events has not already been disabled.
if (!r.style.pointerEvents) {
<?php
namespace app\controllers;
use app\models\Downloads;
class DownloadsController extends \lithium\action\Controller {
public function index() {
$this->request->privateKeys = array('id', 'user_id');
@leek
leek / post-receive-pivotal.rb
Created May 4, 2012 18:14 — forked from pewniak747/post-receive-pivotal
Ruby Git post-receive hook to update Pivotal Tracker
#!/usr/bin/env ruby
# encoding: UTF-8
# file: hooks/post-receive-pivotal
require 'net/http'
require 'nokogiri'
# Ruby 1.8.7
class String
def force_encoding(enc)
@leek
leek / rounded_corners_table.sass
Created January 20, 2012 02:39 — forked from Samnan/rounded_corners_table.sass
Here's how to do a table with rounded corners in CSS3 -- Updated: Fixed bug where bottom left corner wouldn't be rounded with only one TD in last TR
@import compass/reset
@import compass/css3/border-radius
table
border: none
border-collapse: separate
th, td
padding: 5px
thead
background-color: #f2f6fa