Skip to content

Instantly share code, notes, and snippets.

Avatar

James Cool jeffreysbrother

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jeffreysbrother on github.
  • I am jeffreysbrother (https://keybase.io/jeffreysbrother) on keybase.
  • I have a public key ASB-LG7Czl0iPXsvWpkkevxsCEeATluBDyOP2kmTY500Ewo

To claim this, I am signing this object:

@jeffreysbrother
jeffreysbrother / index.php
Last active Mar 11, 2020
Generators in PHP
View index.php
<?php
$start_time = microtime(true);
$startMemoryUsage = memory_get_peak_usage();
/**********************************************
WITHOUT GENERATOR
**********************************************/
$array = [];
View flightplan.js
var plan = require('flightplan');
var username = 'logicfo3';
plan.target('production', [
{
host: '69.195.124.76',
username: username,
privateKey: '/Users/jc/.ssh/id_rsa',
agent: process.env.SSH_AUTH_SOCK
},
@jeffreysbrother
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
jeffreysbrother / config.cson
Last active Dec 13, 2017
Atom config 2017
View config.cson
"*":
Zen:
gutter: true
tabs: "multiple"
"atom-beautify":
js:
space_after_anon_function: true
"atom-clock":
dateFormat: "h:mm a"
showTooltip: true
@jeffreysbrother
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,
"subtleBrackets.style": {
"borderWidth": "1px",
@jeffreysbrother
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,
"ignored_packages":
[
"Vintage"
],
@jeffreysbrother
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
try
source ~/.vim_runtime/my_configs.vim
catch
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,
"ignored_packages":
[
"Vintage"
],
@jeffreysbrother
jeffreysbrother / commit-msg
Created Oct 10, 2016
Add branch name to beginning of commit message
View commit-msg
# add file to {projectname}/.git/hooks/
# please ensure that the .sample extension is not included
NAME=$(git branch | grep '*' | sed 's/* //')
DESCRIPTION=$(git config branch."$NAME".description)
echo "$NAME"' '$(cat "$1") > "$1"
if [ -n "$DESCRIPTION" ]
then
echo "" >> "$1"
You can’t perform that action at this time.