Skip to content

Instantly share code, notes, and snippets.

jeffreysbrother / index.php
Last active Mar 11, 2020
Generators in PHP
View index.php
$start_time = microtime(true);
$startMemoryUsage = memory_get_peak_usage();
$array = [];

Keybase proof

I hereby claim:

  • I am jeffreysbrother on github.
  • I am jeffreysbrother ( on keybase.
  • I have a public key ASB-LG7Czl0iPXsvWpkkevxsCEeATluBDyOP2kmTY500Ewo

To claim this, I am signing this object:

View flightplan.js
var plan = require('flightplan');
var username = 'logicfo3';'production', [
host: '',
username: username,
privateKey: '/Users/jc/.ssh/id_rsa',
agent: process.env.SSH_AUTH_SOCK
jeffreysbrother / init.vim
Created Jan 10, 2018
SpaceVim config, etc
View init.vim
" Dark powered mode of SpaceVim, generated by SpaceVim automatically.
let g:spacevim_enable_debug = 1
let g:spacevim_realtime_leader_guide = 1
call SpaceVim#layers#load('incsearch')
call SpaceVim#layers#load('lang#go')
call SpaceVim#layers#load('lang#haskell')
call SpaceVim#layers#load('lang#javascript')
" call SpaceVim#layers#load('lang#php')
call SpaceVim#layers#load('lang#python')
call SpaceVim#layers#load('lang#markdown')
jeffreysbrother / config.cson
Last active Dec 13, 2017
Atom config 2017
View config.cson
gutter: true
tabs: "multiple"
space_after_anon_function: true
dateFormat: "h:mm a"
showTooltip: true
jeffreysbrother / .vimrc
Last active Dec 5, 2017
2017 work .vimrc
View .vimrc
set runtimepath+=~/.vim_runtime
source ~/.vim_runtime/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/filetypes.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim
source ~/.vim_runtime/vimrcs/extended.vim
source ~/.vim_runtime/my_configs.vim
jeffreysbrother / settings.json
Last active Jun 13, 2017
Visual Studio Code settings.json
View settings.json
// Place your settings in this file to overwrite the default settings
"editor.fontSize": 15,
"editor.lineHeight": 23,
"editor.roundedSelection": false,
"editor.renderIndentGuides": true,
"editor.tabCompletion": true,
"editor.matchBrackets": false,
"": {
"borderWidth": "1px",
jeffreysbrother / Preferences.sublime-settings2
Created May 29, 2017
2016/2017 Sublime Text settings ... influenced by the Laracasts guy.
View Preferences.sublime-settings2
"always_show_minimap_viewport": true,
"color_scheme": "Packages/User/SublimeLinter/Facebook (SL).tmTheme",
"font_face": "Fira Code",
"font_size": 15,
"hot_exit": false,
View custom_fields.php
//activate custom fields in wordpress and name that field. Replace 'about_blurb' below with the selected name (I don't think hyphens can be used here)
<?php $meta_value = get_post_meta($post->ID, 'about_blurb', true);
if (!empty($meta_value)) {
echo '<p>' . $meta_value . '</p>';
} ?>
//however, we can use the Advanced Custom Fields plugin for something much better
//this goes in our template file:
View Preferences.sublime-settings
"always_show_minimap_viewport": true,
"color_scheme": "Packages/Colorsublime - Themes/Boron.tmTheme",
"font_face": "Fira Code",
"font_size": 11,
"hot_exit": false,