Skip to content

Instantly share code, notes, and snippets.

View weerd's full-sized avatar

Diego Lorenzo weerd

View GitHub Profile
@weerd
weerd / index.js
Created October 1, 2021 02:35 — forked from mul14/index.js
JavaScript DocBlock Cheat Sheet
/**
* Description of this function.
*
* @param {string} name
* @param {Date} birthday
* @param {boolean=} isMarried Optional parameter.
* @param {string|null} [bloodType]
* @param {number=} [weight=0] Optional parameter with default value.
* @param {string[]} favoriteFoods Array of String.
*
@weerd
weerd / sketch-shortcuts.md
Created February 23, 2018 16:01 — forked from jqtrde/sketch-shortcuts.md
Sketch Keyboard Shortcuts
  • Zoom
    • CMD 0 100%
    • CMD 1 Entire project
    • CMD 2 Zoom to selected object
  • Hide/Show Sidebars
    • CMD ALT 1 Hide left sidebar
    • CMD ALT 2 Hide right ridebar
    • CMD ALT 3 Hide both
    • CMD . Presentation mode
  • CTRL R Ruler
@weerd
weerd / gist:7fb63f207b8c00d97310fcf8b639933b
Last active February 27, 2020 16:43 — forked from dotcomputercraft/gist:b7283bd52f4b5389e748
How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
the best way (I've found) to completely uninstall node + npm is to do the following:
go to /usr/local/lib and delete any node and node_modules
go to /usr/local/include and delete any node and node_modules directory
if you installed with brew install node, then run brew uninstall node in your terminal
check your Home directory for any local or lib or include folders, and delete any node or node_modules from there
go to /usr/local/bin and delete any node executable
You may need to do the additional instructions as well:
sudo rm /usr/local/bin/npm
@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"
},
@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 / 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 / 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 / git-cheat-sheet.md
Created December 23, 2016 20:18 — forked from loonies/git-cheat-sheet.md
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 / 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 + ] , + [