Skip to content

Instantly share code, notes, and snippets.

View cheeyeo's full-sized avatar
💭
Researching on use of transformers in computer vision

Chee Yeo cheeyeo

💭
Researching on use of transformers in computer vision
View GitHub Profile
@cheeyeo
cheeyeo / gist:6502807b18f98a4499d9
Created March 23, 2016 20:37 — forked from cfjedimaster/gist:2313466
Conditional jQuery resource get
<!DOCTYPE html>
<html>
<head>
<title>Conditional Get</title>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script>
$(document).ready(function() {
var theResource = "dump.zip";
# we'll use 2 processors/core
worker_processes 2;
# we set a new limit for open files for our workers
worker_rlimit_nofile 100000;
# we define how we're going to work
events {
# for each worker we'll handle 4000 requests (enquee them)
worker_connections 4000;
# we'll accept multiple
#!/usr/bin/env bash
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin
@cheeyeo
cheeyeo / link.md
Created February 1, 2016 21:31
Fixing mysql injection in Rails applications
@cheeyeo
cheeyeo / config.ru
Created January 27, 2016 21:43 — forked from ismasan/config.ru
Custom top level rack middleware
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
class MyMiddleware
def initialize(app)
@app = app
end
def call(env)
@cheeyeo
cheeyeo / gist:64e406c0e7960b23c119
Created January 27, 2016 21:31 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat