Skip to content

Instantly share code, notes, and snippets.

🌴
on a wire trip

Ryan Casalino rjpcasalino

🌴
on a wire trip
Block or report user

Report or block rjpcasalino

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View no-jsx.js
render() {
if (this.state.forecast.name != undefined) {
return e('div', null, null,
e('br'),
e('small', null, `${this.state.forecast.name}`),
e('br'),
e('small', null, `${this.state.forecast.shortForecast}`),
e('br'),
e('small', null, `${this.state.forecast.temperature}`),
e('small', {dangerouslySetInnerHTML: {
View keybase.md

Keybase proof

I hereby claim:

  • I am rjpcasalino on github.
  • I am vexhack (https://keybase.io/vexhack) on keybase.
  • I have a public key whose fingerprint is 28A8 7EF6 C02D CF7B 3F15 EED7 1F7A 26F8 2AF1 A7BE

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am vexhack on github.
  • I am vexhack (https://keybase.io/vexhack) on keybase.
  • I have a public key ASDQfrcDVwlLz952Z5jNGfctIeJ9dlxbxu-R5_uT0435lgo

To claim this, I am signing this object:

View hidpi.md
@rjpcasalino
rjpcasalino / LoremIpsumGenerator.js
Last active May 2, 2017
85% Lorem ipsum generator
View LoremIpsumGenerator.js
var words = "The sky above the port was the color of television, tuned to a dead channel. All this happened, more or less. I had the story, bit by bit, from various people, and, as generally happens in such cases, each time it was a different story. It was a pleasure to burn.";
function generateIpsum(str) {
// declare new arrrays
let sentences = [];
let a = [];
// loop through the str so we can split into an array
// we make a new array at every period
for (let i = 0; i < str.length; i++) {
if (str[i] === '.') {
View promise.js
'use strict';
let getUrl= (url) => {
// return a new Promise.
return new Promise((resolve, reject) => {
let req = new XMLHttpRequest();
req.open('GET', url);
// this is where the magic happens.
View gist:e95adadb59c392b94fef32900ff63bf1
CXX(target) Release/obj.target/oracle_bindings/src/connection.o
In file included from ../src/connection.cpp:4:
../src/commitBaton.h:14:14: error: no member named 'Dispose' in 'v8::Persistent<v8::Function,
v8::NonCopyablePersistentTraits<v8::Function> >'
callback.Dispose();
~~~~~~~~ ^
In file included from ../src/connection.cpp:5:
../src/rollbackBaton.h:14:14: error: no member named 'Dispose' in 'v8::Persistent<v8::Function,
v8::NonCopyablePersistentTraits<v8::Function> >'
callback.Dispose();
View retroactively add items to .gitignore
// make change to .gitignore
git rm --cached <filename>
// or, for all files
git rm -r --cached .
git add .
// then
@rjpcasalino
rjpcasalino / snippets.cson
Created Oct 26, 2015
Stolen from my boi Tony (i.e., I don't use many of these)
View snippets.cson
'.source.js':
'Beginning fancy comment':
'prefix': 'bcom'
'body': '/********************************************************'
'Ending fancy comment':
'prefix': 'ecom'
'body': ' ********************************************************/'
'Fancy console.log':
'prefix': 'flog'
'body': 'console.log("$1: ", $1);'
@rjpcasalino
rjpcasalino / happy_git_on_osx.md
Last active Aug 29, 2015 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X
View happy_git_on_osx.md

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"
git config --global user.email "you@example.com"
You can’t perform that action at this time.