Skip to content

Instantly share code, notes, and snippets.

View givanse's full-sized avatar
:shipit:
ON A BOAT

Gastón Silva givanse

:shipit:
ON A BOAT
View GitHub Profile
@givanse
givanse / diy-bitcoin-node-shopping-list.md
Last active February 28, 2022 06:51
DIY Bitcoin node shopping list
@givanse
givanse / main.py
Created May 3, 2019 14:25
time analysis
#!/usr/bin/python
# coding=utf-8
import time
import datetime
from math import pi
M1 = 8.6
M1short = 1.075
M1long = 2.15
@givanse
givanse / resources.md
Last active November 6, 2018 07:15
Bitcoin

Energy

@givanse
givanse / browser-automation-tools.md
Created August 6, 2018 23:07
browser automation tools

browser automation tools

selenium webdriver.io - manages the selenium session nightwatch js - selenium phantom js - development suspended, headless browser casper js - navigation scripting for phantom js and slimer js nightmare js - uses electron slimer js - like phantom js, based on firefox

@givanse
givanse / arrow-functions.md
Last active November 14, 2018 00:12
Arrow Functions

Use them to avoid doing this:

this.list = [];
const self = this;
function callback() {
  self.list;
}
someAsyncFunction(callback);
@givanse
givanse / p4-local-status.py
Last active May 2, 2018 19:42
python script that tells you which local files are not part of a perforce depot
#! /usr/bin/env python
# For this script to work you have to install `p4` (Helix command line client)
# This script will tell you if you have local files that are not part of the depot.
#
# Usage example:
# tools$ p4-local-status.py
# folder: tools
# p4-local-status.cmd - no such file(s).
@givanse
givanse / components.rich-and-complex.js
Last active October 27, 2017 20:44
never un-render
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['rich-and-complex']
});
@givanse
givanse / components.child-component.js
Created September 1, 2017 09:42
conditional closure action on contextual component
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['child_component'],
tagName: 'button',
actions: {
doSomething: function() {
alert('child: did something');
}
}
@givanse
givanse / README.md
Last active July 20, 2017 18:46
Home Mac

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Node through nvm

# the script setup-node.sh is available within this gist
import Ember from 'ember';
const TodoItem = Ember.Object.extend({
completed: false
});
export default Ember.Controller.extend({
value: '',