Skip to content

Instantly share code, notes, and snippets.

@JuanSierra
JuanSierra / example.js
Last active July 31, 2023 17:59
child_process fork
// compute.js
const longComputation = () => {
let sum = 0;
for (let i = 0; i < 1e9; i++) {
sum += i;
};
return sum;
};
@JuanSierra
JuanSierra / gb.png
Last active June 30, 2021 10:37
flag images
gb.png
@JuanSierra
JuanSierra / commondata.json
Last active May 24, 2020 17:40
HN-HIGHLIGHT
[{"entry":"23292749","score":1},{"entry":"23290813","score":17},{"entry":"23290943","score":9},{"entry":"23271003","score":8},{"entry":"23291458","score":7},{"entry":"23290844","score":18},{"entry":"23292805","score":1},{"entry":"23270785","score":5},{"entry":"23292821","score":2},{"entry":"23289563","score":9},{"entry":"23282113","score":2},{"entry":"23291337","score":8},{"entry":"23291837","score":6},{"entry":"23289886","score":24},{"entry":"23290722","score":10},{"entry":"23289185","score":24},{"entry":"23291589","score":10},{"entry":"23291779","score":8},{"entry":"23290769","score":10},{"entry":"23290536","score":17},{"entry":"23290815","score":14},{"entry":"23288855","score":9},{"entry":"23291466","score":10},{"entry":"23289052","score":24},{"entry":"23291593","score":2},{"entry":"23291155","score":13},{"entry":"23291094","score":14},{"entry":"23291118","score":10},{"entry":"23291328","score":2},{"entry":"23280402","score":24},{"entry":"23292850","score":1},{"entry":"23287278","score":24},{"entry":"23280
@JuanSierra
JuanSierra / commondata.json
Created April 21, 2020 07:56
Gist post test
{"datetime":"2012-04-23T18:25:43.511Z"}
@JuanSierra
JuanSierra / IF-games.json
Created August 24, 2019 08:04
Current IF games located in Latam & Spain
[{
"name":"Ephemeral",
"author":"Matt Paredes",
"authorLink":"https://rayne96.itch.io/",
"loc":"Argentina"
},
{
"name":"La Miel más Dulce",
"author":"Mauro Daniel Couto Valiente",
"authorLink":"https://thebit.itch.io/",

Cloud Fluffy Hamster

Features

  • Enter application

    1. User types his name
    2. Ham looks for the user
      1. If User exists Ham returns recent activities
      2. If User DOESN'T exist Ham returns a notification
  • Check recent Facts

@JuanSierra
JuanSierra / trozo_angular
Last active May 5, 2016 23:48
Porcion de código en Angular
angular.module('Gomura', ['ngResource', 'ngRoute', 'ngWebSocket', 'ngDialog'])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/home.ejs',
controller: 'ctrl'
})
.when('/room/:roomName', {
templateUrl: 'views/room.ejs',
controller: 'ctrl2'
GIMP
SQLServer
MySQL
Mongo
Node
Python
Ruby
7-Zip
FlashDevelop
Heroku Toolbelt
@JuanSierra
JuanSierra / ColombianGames_2014.md
Last active August 29, 2015 14:09
Videojuegos hechos por Colombianos

* Cellfactor - 2007 - *Immersion Games

* Monster Madness - 2007 - *Immersion Games

* Vampire Season - 2012 - *Brainz

* Grabbity - 2012 - *Efecto Studios

* Nitro Chimp - 2012 - C2 *Game Studio

* Write It - 2012 - 360 *Digital Co

* Poltergeist - 2012 - *Glitchy Pixel

* Papo & Yo - 2012 - *Minority

* Audio Ninja - 2013 - *Brainz/Cocodrilo Dog

* Dani The Thief - 2013 - *Qualmob/Calabiyau Games

@JuanSierra
JuanSierra / join_dyn.cs
Last active December 29, 2015 14:39
join dinamico en linq
var resultado = from EXT in datosExternos.AsEnumerable()
join LOC in datosLocales.AsEnumerable()
on new { c1 = EXT.Field<string>(Variables.CampoIdLote).ToString(), c2 = EXT.Field<int>(Variables.CampoFolder).ToString() }
equals new { c1 = LOC.Field<string>(Variables.CampoIdLote).ToString(), c2 = LOC.Field<int>(Variables.CampoFolder).ToString() }
select new ResultadoACombinar { DatosExternos = EXT, DatosLocales = LOC };