Skip to content

Instantly share code, notes, and snippets.

View sgnl's full-sized avatar
🍪
Do you agree to share your cookies?

Ray Farias sgnl

🍪
Do you agree to share your cookies?
  • Honolulu, Hawaii
View GitHub Profile

#PidginScript ###or BrahScript

variable assignment => dakine example: dakine name stay "Jon"

NULL => sostay
= operator => stay

!= operator => not

@sgnl
sgnl / gist:9983808
Last active August 29, 2015 13:58
Setting up SSH and .git/config to work with BitBucket
//On BitBucket
var user = 'sgnl' //enter your username here
if (!logged_in_at_bitbucket){
userLogin();
}
goTo.YourAccountSettings('https://bitbucket.org/account/' + user + '/');
$('a#SSH-Kets').click();
@sgnl
sgnl / server.js
Last active August 29, 2015 14:00
node-restify-usergrid
var usergrid = require('usergrid');
/* Usergrid */
var client = new usergrid.client({
orgName:'lupin',
appName:'sandbox',
logging: true, //optional - turn on logging, off by default
});
@sgnl
sgnl / gist:6f50f802e5c83695c5fb
Last active August 29, 2015 14:03
To-Do list using HTML, jQuery, and CSS.

To-Do list using HTML, jQuery, and CSS.

This exercises needs jQuery, it may be best to download jQuery and add it locally to the project as doing so allows you to work offline.

Tech:

Requirements:

@sgnl
sgnl / gist:e5c882318ce6627805de
Last active August 29, 2015 14:03
txtrc - A Basic Chat Room

Chat Room

Build a basic chat room. The purpose of this exercise is to practice getting user input and manipulating the DOM through javascript with jQuery.

Requirements:

  • Must have a form
    • this form must have at least 2 fields
      • an input field for username
      • a textarea field for the message to send to the chat room
  • this form must have a submit button
@sgnl
sgnl / sublimelinter.develeague.md
Last active May 4, 2016 07:33
Adding the SublimeLinter and JSHint packages to your sublime text 3.
  1. Install/Verify you have Sublime Text 3 (http://sublimetext.com/3)

  2. Install/Verify that Package Control Module is installed to for Sublime Text: https://packagecontrol.io/installation

Linux: Click the Preferences > Browse Packages… menu
 Browse up a folder and then into the Installed Packages/ folder
 Download Package Control.sublime-package and copy it into the Installed Packages/ directory
 Restart Sublime Text

  • Open up Package Control in your sublime text. (cmd+shift+P)
    1. Type PC Install to make use of FuzzySearch to bring up Package Control: Install Package
  1. Hit the enter key
@sgnl
sgnl / gist:9553c13a5a7341f76685
Created November 7, 2014 07:41
Helpful CSS Pseudo Selectors
:first-child - https://developer.mozilla.org/en-US/docs/Web/CSS/:first-child
:last-child - https://developer.mozilla.org/en-US/docs/Web/CSS/:last-child
:nth-child() - https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child
30 Most Helpful CSS Selectors:
http://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize--net-16048
Special Stuff:
@sgnl
sgnl / path.js
Created November 19, 2014 02:08
Scriptcraft - Blocks Follow
var utils = require('utils');
events.on("player.PlayerMoveEvent", function(evt) {
var playerLoc = utils.getPlayerPos(evt.player);
var drone = new Drone(playerLoc);
// console.log(playerLoc);
drone.box(blocks.wood, 1, 1, 1);
});
@sgnl
sgnl / add-upstream.md
Last active October 3, 2023 22:51
So you've forked a Repository and you want updates...

#tl;dr

setting up a branch to track a repo

pre: assuming you have forked a repo and cloned your fork to your computer

  1. git remote add [maintainer's name] [paste URL here]
  2. git fetch --all
  3. git branch --track [maintainer's name]_[branch] [remote name from step 1]/[branch you want to track] At this point you may watch to checkout to your newly create branch and issue a git pull command.