https://dl.dropboxusercontent.com/u/762638/Files/Images/Screenshots/yakuake-mintty.jpg
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
class A; | |
class B; | |
class C; | |
class A | |
{ | |
public: |
This file contains hidden or 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
Yet another place where intuitions derived from the normal distribution about the behavior of distributions screws people. | |
An explanation I like, from michaelochurch: | |
Let's say that you have 20 tasks. Each involves rolling a 10-sided die. | |
If it's a 1 through 8, wait that number of minutes. If it's a 9, wait 15 | |
minutes. If it's a 10, wait an hour. | |
How long is this string of tasks going to take? Summing the median time | |
expectancy, we get a sum 110 minutes, because the median time for a task is | |
5.5 minutes. The actual expected time to completion is 222 minutes, with 5+ |
This file contains hidden or 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
class ApplicationController < ActionController::API | |
include AbstractController::Translation | |
include ActionController::MimeResponds | |
include ActionController::ImplicitRender | |
include ActionController::StrongParameters | |
# Gems that tries to include something in ActionController::Base | |
include JSend::Rails::Controller | |
include CanCan::ControllerAdditions |
This file contains hidden or 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
class Ability | |
include CanCan::Ability | |
attr_reader :current_user | |
def initialize(user) | |
alias_action :create, :update, :destroy, :to => :write | |
@current_user = user || User.new |
This file contains hidden or 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
# SQLite version 3.x | |
# gem install sqlite3 | |
# | |
# Ensure the SQLite 3 gem is defined in your Gemfile | |
# gem 'sqlite3' | |
# | |
default: &default | |
adapter: postgresql | |
encoding: utf8 | |
database: nome_del_db |
This file contains hidden or 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
; This must be always running in background | |
OpenShellIfNotRunning() | |
{ | |
Opening := False | |
DetectHiddenWindows, on | |
IfWinNotExist ahk_class Console_2_Main | |
{ | |
ConsolePath := "PATH\TO\Console.exe" | |
EnvGet UserProfile, UserProfile | |
Run %ConsolePath%, "-d", %UserProfile% |
This file contains hidden or 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
bundle exec rspec spec/controllers/readers_controller_spec.rb | |
..FF** | |
Pending: | |
ReadersController POST create when save message returns to true redirects to root url | |
# Not yet implemented | |
# ./spec/controllers/readers_controller_spec.rb:45 | |
ReadersController POST create when save message returns to true assigns a success flash message | |
# Not yet implemented | |
# ./spec/controllers/readers_controller_spec.rb:46 |
This file contains hidden or 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
class UserSessionsController < ApplicationController | |
skip_before_action :get_current_user, only: [:create] | |
def create | |
authorize! :create, UserSessionsController | |
interactor = SignInUser.perform(users_session_params) | |
create_context interactor | |
if interactor.success? |
- Stocksy – http://www.stocksy.com
- Little Visuals – http://littlevisuals.co
- Picjumbo – http://picjumbo.com
- The Pattern Library – http://thepatternlibrary.com
- New Old Stock – http://nos.twnsnd.co
- ImageBrief – http://www.imagebrief.com
- Compfight – http://compfight.com
- Unsplash – http://unsplash.com