Skip to content

Instantly share code, notes, and snippets.


Samuel Santos samueltcsantos

View GitHub Profile
samueltcsantos / Update remote repo
Created August 24, 2017 17:40 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
View Update remote repo
// Reference:
// See also:
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin
$ git push origin master
$ git remote rm bitbucket
samueltcsantos / bower.js
Created December 3, 2016 01:51 — forked from PascalAnimateur/bower.js
Configure grunt-bower-task with Sails.js (Bootstrap + jQuery as example)
View bower.js
* Task to pull out specific files from bower packages.
module.exports = function (grunt) {
grunt.config.set('bower', {
install: {
options: {
layout: function(type, component) {
return type;
samueltcsantos /
Created December 7, 2015 23:37 — forked from iros/
Documenting your REST API


<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

View index.html
<div id="issuu-widget">
<script type="text/javascript" src="/wp-includes/js/swfobject.js"></script>
<script type="text/javascript">
function loadIssuuWidget(result) {
var doc =[0];
var link = jQuery('<a />').attr({
href: '' + doc.docname,
View canvas.js
var canvas = document.getElementById('mycanvas');
var context = canvas.getContext('2d');
context.strokeStyle = '#0000ff';
context.lineWidth = 2;
context.fillStyle = '#00ff00'; //green
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting
import curses
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN
from random import randint
win = curses.newwin(20, 60, 0, 0)