Skip to content

Instantly share code, notes, and snippets.

View weerd's full-sized avatar

Diego Lorenzo weerd

View GitHub Profile
@weerd
weerd / countries.php
Created February 18, 2016 03:48 — forked from JeffreyWay/countries.php
Country Names + Codes
[
"United States" => "us",
"Afghanistan" => "af",
"Albania" => "al",
"Algeria" => "dz",
"American Samoa" => "as",
"Andorra" => "ad",
"Angola" => "ad",
"Anguilla" => "ai",
"Antarctica" => "aq",
@weerd
weerd / iterm2.md
Created December 6, 2016 18:27
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
Go to Split Pane by Order of Use + ] , + [
@weerd
weerd / mysql-cheat-sheet.md
Created December 23, 2016 20:18
MySql Cheat Sheet
@weerd
weerd / git-cheat-sheet.md
Created December 23, 2016 20:18
Git Cheat Sheet

Git Cheat Sheet

Although there are enough resources on the web about Git, I will keep this one for my own reference. Minimal Git version required 1.7.2.

TOC

@weerd
weerd / 1_phpunit-api.md
Created December 23, 2016 20:18 — forked from loonies/1_phpunit-api.md
PHPUnit Cheat Sheet

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this->anything()
@weerd
weerd / gh-pages-deploy.md
Created December 30, 2016 21:41 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@weerd
weerd / readme.md
Created February 10, 2017 00:33 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

@weerd
weerd / dosomething_projects_and_names.md
Last active March 22, 2017 13:33
DoSomething Projects & Marvel Names

Phoenix

  • Main platform that powers the DoSomething.org website; it has been burned down and risen from the ashes a few times now.
  • Marvel reference: A mutant heroine with virtually limitless matter and energy manipulation, telepathy, telekinesis, empathy, etc. She is one of the most powerful mutants.

Forge

  • The DoSomething.org pattern library.
  • Marvel reference: A mutant hero with superhuman intuitive talent at inventing and building; genius.

Northstar

  • The DoSomething user & identity service.
@weerd
weerd / dosomething_checklist.md
Last active April 28, 2017 20:23
DoSomething Project Checklist

DoSomething Project Checklist

Whelp! Looks like you've run into an error or some major bug. Here's a quick list of things to run through and check before you feel the need to bug everyone on Slack:

In Laravel, did you check...

  • if composer packages were updated or new ones installed? Run $ composer install
  • if the cache needs to be cleared? Run $ php artisan cache:clear
@weerd
weerd / cities.json
Created July 18, 2017 18:01 — forked from Miserlou/cities.json
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},