Skip to content

Instantly share code, notes, and snippets.

View mikejavier's full-sized avatar
🏠
Working from home

Michael Santillán mikejavier

🏠
Working from home
View GitHub Profile
<?php
namespace Leet;
class HttpKernel
{
public function __construct($routes)
{
$this->routes = $routes;
}
@mikejavier
mikejavier / server.js
Created August 3, 2018 16:13 — forked from joshj/server.js
Twitter OAuth with node-oauth for node.js+express
/*
Node.js, express, oauth example using Twitters API
Install Node.js:
curl -0 http://nodejs.org/dist/v0.6.11/node-v0.6.11.tar.gz
tar -zxf node-v0.6.11.tar.gz
cd node-v0.6.11
./configure
make
make install
@mikejavier
mikejavier / gh-pages-deploy.md
Created April 30, 2017 14:56 — 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).

@mikejavier
mikejavier / readme.md
Created November 4, 2016 00:46 — 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