Skip to content

Instantly share code, notes, and snippets.

Avatar

Jesús Herman Marina jhmarina

View GitHub Profile
@jhmarina
jhmarina / hyper-config.js
Created Feb 22, 2019
Hyper Terminal config
View hyper-config.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
View kill_running_process.sh
# where 4000 is the port number
$ lsof -wni tcp:4000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ruby 7362 rymo 14u IPv4 0xc512a9985f0651ed 0t0 TCP *:terabase (LISTEN)
# where 7362 is the PID of the process running on port 4000
$ kill -9 7362
@jhmarina
jhmarina / index.pug
Created Jan 11, 2018
Neon Grid Loaders
View index.pug
div.container
div.grid-big
- for (i=0; i<9; i++)
div.cell
View JS_operators.js
var x = 5;
//greater than (>)
console.log("x > 8 = "+(x > 8));
console.log("x > 4 = "+(x > 4));
console.log("x > 5 = "+(x > 5));
//less than (<)
console.log("x < 8 = "+(x < 8));
@jhmarina
jhmarina / operators.js
Last active Apr 20, 2017
JS Practice: Operators
View operators.js
// comparison operators
// if & else
// difference between == & === 
var isFCCGreat = true;
if (isFCCGreat) {
console.log('Free Code Camp is great');
} else {
console.log('Free Code Camp is horrible');
}
@jhmarina
jhmarina / stringMethods.js
Last active Apr 20, 2017
JS Practice: 20 String Methods
View stringMethods.js
// Strings: 20 string methods
var stringOne = "the interwebz is the best place to learn";
var stringTwo = "frontend and backend development";
// charAt()
console.log(stringOne.charAt(1));
// charCodeAt() - unicode character
@jhmarina
jhmarina / stringBasics.js
Last active Apr 19, 2017
JS Practice: String Basics
View stringBasics.js
// string basics
var myName = 'Jesus';
var sentence = "He said \"Hi!\"";
console.log(sentence);
var sentenceTwo = 'He said \"Hi!\"';
console.log(sentenceTwo);
/*
@jhmarina
jhmarina / dataTypes.js
Last active Apr 19, 2017
JS Practice: Data types
View dataTypes.js
// Boolean
var data = true;
if (data) {
console.log('Booleans rule!');
} else {
console.log('Booleans are lame');
}
// null (no value)
@jhmarina
jhmarina / SassMeister-input-HTML.html
Last active Oct 9, 2015
Using Sass for reusable typography
View SassMeister-input-HTML.html
<!--typical headline-->
<h1>This is a headline</h1>
<!--This span needs to look like -->
<span class="special-span">This span needs to emulate a headline but with different color</span>
@jhmarina
jhmarina / while-for-do-loops
Created May 19, 2015
While, for & do loops JS
View while-for-do-loops
// Write your code below!
for (var count = 0; count < 1; count++) {
console.log("This is my for loop");
} //<-- not necessary here
while(i <= 5) {
console.log ("This is my while loop");
i++;
}
You can’t perform that action at this time.