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 / en.yml
Last active December 24, 2015 08:08
Custom error messages in Rails 3.2?
en:
activerecord:
models:
user: Dude
attributes:
user:
first_name: "Name first"
errors:
models:
product:
@cheeyeo
cheeyeo / gist:6783362
Created October 1, 2013 19:00
PRACTISING RUBY LINK
https://github.com/elm-city-craftworks/practicing-ruby-manuscripts
@cheeyeo
cheeyeo / gist:6807814
Created October 3, 2013 10:10
Running Capybara feature tests with Rack session access
bundle exec rspec -fs -c spec/features/signup.rb
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
@cheeyeo
cheeyeo / gist:6872962
Created October 7, 2013 18:50
Motivational Links
http://thoughtcatalog.com/2013/how-to-stay-focused-when-you-get-bored-working-toward-your-goals/#MoT5xIORZ9dB2Uyg.01
@cheeyeo
cheeyeo / func1.ex
Created October 13, 2013 13:35
Some simple elixir anonymous functions
list_concat = fn a,b -> a ++ b end
list_concat.([1,2,3],[4,5,6])
sum = fn a,b,c -> a + b + c end
sum.(1,2,3)
swap = fn {a,b} -> [a,b] end
@cheeyeo
cheeyeo / fun2.exs
Created October 13, 2013 14:34
functions that return other functions
prefix = fn n -> (fn other -> "#{n} #{other}" end) end
prefix.("Elixir").("Rocks")
#!/bin/bash
# Download all VMWare Fusion machines from Modern.IE Website to test your Website/Web Application in Microsoft Internet Explorer on Mac OSX. All VM's and other VM's for Windows and Linux and other Virtual Manager's such as VirtualBox can be found at http://modern.ie/
# Don't have cURL or want to learn more, visit http://curl.haxx.se/.. are you really a Developer? First part of that sentence comes from the MS site.
read -p "--> Downloading Internet Explorer 6-10 on Windows XP/7/8 Appliances for VMWare Fusion. Large downloads ahead. (Press Enter to continue)."
echo "--> Download Internet Explorer 6 on Microsoft Windows XP Appliance for VMWare Fusion."
curl --progress-bar -O "http://virtualization.modern.ie/vhd/IEKitV1_Final/VMWare_Fusion/IE6_XP/IE6.XP.For.MacVMware.sfx"
echo "--> Download Internet Explorer 8 on Microsoft Windows XP Appliance for VMWare Fusion."

Global .gitignore

We don't want to polute the repository with a .gitignore file... so you must add common OS files to your Global .gitignore. If you don't already have a global .gitignore then follow the instructions below (from: http://help.github.com/ignore-files/) or skip to the next section.

cd ~   
touch .gitignore_global   
mate .gitignore_global   
<html>
<head>
<title>Mixpanel AMD Example - Sync</title>
<script type="text/javascript" src="http://requirejs.org/docs/release/2.1.8/minified/require.js"></script>
<script type="text/javascript">
requirejs.config({
paths : { 'mixpanel': "//cdn.mxpnl.com/libs/mixpanel-2.2.min" },
shim: {
'mixpanel': {
deps: ['mixpanel-preinit'],