Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| class SimpleLinearRegression | |
| def initialize(xs, ys) | |
| @xs, @ys = xs, ys | |
| if @xs.length != @ys.length | |
| raise "Unbalanced data. xs need to be same length as ys" | |
| end | |
| end | |
| def y_intercept | |
| mean(@ys) - (slope * mean(@xs)) |
| .DS_Store | |
| ._* | |
| node_modules/ |
| property baseURL : "http://statusboard.dev/song?" | |
| if application "Spotify" is running then | |
| tell application "Spotify" | |
| set theTrack to name of the current track | |
| set theArtist to artist of the current track | |
| set theAlbum to album of the current track | |
| set theurl to spotify url of the current track | |
| try | |
| do shell script "/usr/local/bin/wget --delete-after \"" & baseURL & "&t=" & theTrack & "&a=" & theArtist & "&al=" & theAlbum & "\"" |
The latest release notes is available at http://edgeguides.rubyonrails.org/3_2_release_notes.html
Speed up development by only reloading classes if dependencies files changed. This can be turned off by setting config.reload_classes_only_on_change to false. José Valim
New applications get a flag config.active_record.auto_explain_threshold_in_seconds in the environments configuration files. With a value of 0.5 in development.rb, and commented out in production.rb. No mention in test.rb. fxn
Add DebugExceptions middleware which contains features extracted from ShowExceptions middleware José Valim
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
| # Add rbenv to the path: |
| # The latest version of this script is now available at | |
| # https://github.com/jasoncodes/dotfiles/blob/master/aliases/rbenv.sh | |
| VERSION=1.9.3-p286 | |
| brew update | |
| brew install rbenv ruby-build rbenv-vars readline ctags | |
| if [ -n "${ZSH_VERSION:-}" ]; then | |
| echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc | |
| else | |
| echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.bash_profile |
This gist is no longer valid. Please see Compass-Rails for instructions on how to install.
| gem 'dragonfly', '~>0.9.4' | |
| group :production do | |
| gem 'fog' # for Amazon S3 | |
| end |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ChangeResourceRecordSetsRequest xmlns="https://route53.amazonaws.com/doc/2010-10-01/"> | |
| <ChangeBatch> | |
| <Comment> | |
| <!-- Change this comment if you like. Don't forget to fill in your own domain and publisher id below! --> | |
| Establish DNS records for Google Ads for Domains | |
| </Comment> | |
| <Changes> | |
| <Change> | |
| <Action>CREATE</Action> |