Topics
- MVC
- Routes
- Convention over Configuration
- How to create a Rails project
- Directory Structure
- Route helpers
- (*) sprockets (manifest files, minification, etc, Scss)
- (*) views (view helpers
upstream foobar { | |
server unix:///var/www/foobar/shared/sockets/puma.sock; | |
} | |
server { | |
server_name www.foobar.com; | |
return 301 $scheme://foobar.com$request_uri; | |
} | |
server { |
AllCops: | |
Include: | |
- '**/Rakefile' | |
- '**/config.ru' | |
Exclude: | |
- 'db/**/*' | |
- 'config/**/*' | |
- 'script/**/*' | |
- 'bin/**/*' | |
- 'vendor/**/*' |
language: ruby | |
rvm: | |
- 2.0.0 |
var GameObject = function(name) { | |
this.name = name || "gameObject"; | |
this.components = []; | |
} | |
GameObject.prototype.update = function() { | |
this.components.map(function(component) { | |
if (!!component.update) { | |
component.update(); | |
} |
Topics
#!/usr/bin/env ruby | |
require 'bitly' | |
require 'clipboard' | |
require 'uri' | |
username = ENV['BITLY_USERNAME'] | |
api_key = ENV['BITLY_API_KEY'] | |
url = ARGV.shift |
# We want to have something this: | |
# app/models/user.rb | |
class User < ActiveRecord::Base | |
include Presenter::Mixin | |
end | |
# or for more customization | |
class User < ActiveRecord::Base | |
presented |
require "contracts" | |
C = Contracts | |
module ModuleWithContracts | |
def self.included(base) | |
base.extend ClassMethods | |
end | |
module ClassMethods |
#!/bin/sh | |
# grab screen width and height | |
resolution=$(xrandr | grep '*' | head -n1 | tr -s ' ' | cut -d ' ' -f2) | |
resolution_width=$(echo $resolution | cut -d 'x' -f1) | |
resolution_height=$(echo $resolution | cut -d 'x' -f2) | |
# overlay will have full width, 80px height | |
width=$resolution_width | |
height=80 |
Overall, I like the path where this is headed, but I have some big concerns with the current functionality. here's a quick list:
See the screenshot below, taken a couple of days ago:
This is a list of open PRs on a client project. Some were already reviewed by me, other's weren't. For the ones I haven't reviewed, the green check mark also shows up, because our CI was green. There was no way for me to tell which ones I still haven't reviewed without opening each one individually.