Skip to content

Instantly share code, notes, and snippets.

View rsoares's full-sized avatar
💭
I help translating human processes to computer instructions. Ping me!

Ricardo Soares rsoares

💭
I help translating human processes to computer instructions. Ping me!
  • Faro - Portugal
View GitHub Profile
@rsoares
rsoares / machine.js
Last active February 14, 2020 16:54
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@rsoares
rsoares / machine.js
Created February 13, 2020 13:39
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions

Keybase proof

I hereby claim:

  • I am rsoares on github.
  • I am rsoares (https://keybase.io/rsoares) on keybase.
  • I have a public key ASAQTciqAkhViSxqC9VtqLrTNh_mXtflS1_qKKKGq_e-dAo

To claim this, I am signing this object:

var http = require( "http" ),
args = process.argv.slice(2),
mimicAsync = [],
result = [],
j = 0;
args.forEach( function( url, index ) {
http.get( url, function( response ) {
var stream = "";
@rsoares
rsoares / gist:8417313
Last active January 3, 2016 05:39
Insert LayoutManager views into different positions
var MyView = Backbone.View.extend({
// ...
/* Override insert function. */
insert: function(root, child) {
var $lastView = root.find( ".foo" ).last(),
$lastBar = root.find( ".foo.bar" ).last();
if( $lastView.length ) {
child.insertAfter( $lastView );
@rsoares
rsoares / gist:4031479
Created November 7, 2012 13:04
Sublimelinter settings
{
"sublimelinter": true,
"sublimelinter_popup_errors_on_save": false,
// An array of linter names to disable. Names should be lowercase.
"sublimelinter_disable":
[
"css"
]
}
@rsoares
rsoares / project_config.json
Created November 2, 2011 10:28
Project file configuration
{
"folders":
[
{
"path": "path/to/folder/foo"
"file_exclude_patterns": [""]
},
{
"path": "path/to/folder/bar"
"file_exclude_patterns": [""]
@rsoares
rsoares / gist:1324895
Created October 29, 2011 18:22
My basic st2 user settings
{
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme", // user whatever you like
"font": "monospace",
"font_size": 10.0,
"translate_tab_to_spaces": true
}