This is a fork from mbostock's calendar heatmap example at https://gist.github.com/mbostock/4063318
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This probably won't run as a script, but you can copy sections at a time. | |
# Before running, change CAPITAL LETTERS to the appropriate variables you have | |
#When you get stuck on installation for "ttf-mscorefonts-installer", press [Tab] then [Return] to accept the agreement. | |
sudo apt-get update | |
sudo apt-get install mysql-server mysql-client | |
sudo apt-get install libmysql-ruby libmysqlclient-dev | |
sudo apt-get install build-essential mysql-server gedit-plugins ri phpmyadmin msttcorefonts openjdk-6-jdk git-core | |
sudo apt-get install sqlite3 libsqlite3-dev libsqlite3-ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install Fink (which is sorta like brew) | |
#http://www.finkproject.org/download/index.php?phpLang=en | |
#Install Meld | |
fink install meld | |
#connect it to git diff | |
http://linux.subogero.com/414/git-diff-meld/ | |
chmod +x ~/gitvdiff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Install XCode | |
# Follow Instructions at https://developer.apple.com/xcode/ | |
# In Xcode preferences, enable command line tools | |
## rbenv for ruby compiling and managing versions | |
## https://github.com/sstephenson/rbenv/ | |
brew install rbenv | |
brew install ruby-build | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Notes: | |
#~/Code/shifts is a github project I've been working on | |
# | |
## Complete prerequisites on https://github.com/rictic/code_swarm | |
## Clone the repo, patch it | |
cd ~/Code | |
git clone git://github.com/rictic/code_swarm.git | |
# one commit was giving me trouble, and I don't know how to pull request a better solution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
profiles = UserProfile.all.select{|profile| profile.user.is_active?(Department.first)} | |
emails = [] | |
profiles.each do |profile| | |
if profile.photo_file_name == nil | |
emails << profile.user.email | |
puts profile.user.email | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user_emails = [] | |
Shift.after_date(Time.now - 4.weeks).find_all_by_location_id(44).each do |sh| | |
user_emails << sh.user.email | |
end | |
user_emails = user_emails.uniq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User.all.each_with_index do |user, i| | |
user.email = "casey.s.watts+testing" + i.to_s + "@gmail.com" | |
user.save | |
end |
Short url: caseywatts.com/quicktimegifs
- Put a file
in.mov
in the folder~/giffing/
- Run Lines 2 and 3
- Enjoy!
OlderNewer