- Programming Ruby (aka, The Pickaxe)
- The Well Grounded Rubyist
- _why's Poignant Guide _ a little scattershot, mad
- Learn to Program - designed for newcomers with no programming experience
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
""" FocusMode | |
function! ToggleFocusMode() | |
if (&foldcolumn != 12) | |
set laststatus=0 | |
set numberwidth=10 | |
set foldcolumn=12 | |
set noruler | |
hi FoldColumn ctermbg=none | |
hi LineNr ctermfg=0 ctermbg=none | |
hi NonText ctermfg=0 |
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
<?php | |
// ... | |
public function testProtected() | |
{ | |
$dateFormatter = new DateFormatter; | |
$class = new \ReflectionClass('DateFormatter'); |
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
<?php | |
/** | |
* Intention: | |
* | |
* "testing" environment has a SQLite database configured | |
* Run migrations against --env=testing | |
* | |
* Separate seeds run here per test method will delete the SQLite | |
* code tables, and re-create them with codes that fit the needs |
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
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.provision "shell", path: "provision.rb" | |
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
// ... | |
let webpack = require("webpack"); | |
mix.webpackConfig({ | |
plugins: [ | |
// Choose the language you want to keep (Ex: "fr") | |
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /fr/) | |
] | |
}); |
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
var o = $({}); | |
$.subscribe = o.on.bind(o); | |
$.publish = o.trigger.bind(o); |
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
set -g default-terminal "xterm-256color" | |
set-option -ga terminal-overrides ",xterm-256color:Tc" | |
set -g prefix C-x | |
unbind-key C-x | |
bind-key C-2 send-prefix | |
bind \ split-window -h -c '#{pane_current_path}' | |
bind / split-window -v -c '#{pane_current_path}' | |
# Copy-paste integration |
OlderNewer