Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Patricio López Juri lopezjurip

🎯
Focusing
View GitHub Profile
@Miserlou
Miserlou / shell_invoke.sh
Created Aug 31, 2017
Execute Lambda Shell Commands With Zappa
View shell_invoke.sh
zappa invoke --raw 'import subprocess; print subprocess.check_output("ls");'
@princejwesley
princejwesley / await-babel-repl.js
Last active Jan 9, 2021
REPL with standalone await + babel transform
View await-babel-repl.js
const repl = require('repl');
const babel = require('babel-core');
function preprocess(input) {
const awaitMatcher = /^(?:\s*(?:(?:let|var|const)\s)?\s*([^=]+)=\s*|^\s*)(await\s[\s\S]*)/;
const asyncWrapper = (code, binder) => {
let assign = binder ? `global.${binder} = ` : '';
return `(function(){ async function _wrap() { return ${assign}${code} } return _wrap();})()`;
};
@radutzan
radutzan / Transantiago public endpoints.md
Last active May 10, 2019
APIs REST públicas con data del Transantiago. Respuestas en JSON.
View Transantiago public endpoints.md

Nuevo: SCLTransit

Ignacio Hermosilla implementó un servicio web de acceso público usando los feeds GTFS de Transantiago y los puntos de acceso oficiales que normalmente requieren acuerdos con el DTPM, para que tú no tengas que hacerlo.

Está toda la información de Transantiago que puedas necesitar, con formatos de alta calidad y sin trámites. Estas APIs son las que ahora alimentan a Cromi.

Revisa los endpoints y la documentación en scltrans.it

APIs internas de Transantiago (no recomendadas)

Transantiago implementó estas APIs para uso interno, por lo que no hay ninguna garantía sobre su funcionalidad, mantenimiento o futura existencia. Úsalas bajo tu propio riesgo. (Probablemente no es aconsejable que las uses para nada crítico.)

View Readme.md

Minimum Viable Async with Node 6

With the release of Node 6.0.0, the surface of code that needs transpilation to use ES6 features has been reduced very dramatically.

This is what my current workflow looks like to set up a minimalistic and fast microservice using micro and async + await.

The promise

@vasanthk
vasanthk / System Design.md
Last active Dec 7, 2021
System Design Cheatsheet
View System Design.md

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
anonymous
anonymous / Cascading-Solar-System!.markdown
Created Apr 26, 2015
Cascading Solar System!
View Cascading-Solar-System!.markdown

Cascading Solar System!

An Orrery in pure CSS3 (ok, Sass generated). Still WIP. Having great fun with it!

A Pen by Tady Walsh on CodePen.

License.

@Timber232
Timber232 / stickynote_font_fix.reg
Created Apr 21, 2015
Change font to consola (Windows Sticky Notes)
View stickynote_font_fix.reg
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Segoe Print (TrueType)"="consola.ttf"
"Segoe Print Bold (TrueType)"="consolab.ttf"
anonymous
anonymous / gist:3bc472ad0f9631025dce
Created Mar 26, 2015
bajador de carpetas siding
View gist:3bc472ad0f9631025dce
import cookielib
import os
import urllib
import urllib2
from bs4 import BeautifulSoup
import re
# Datos de la cuenta de siding
username = "<username>"
@StephanHoyer
StephanHoyer / github.js
Last active Nov 5, 2021
Commiting multiple files to github over API
View github.js
'use strict';
var Octokat = require('octokat');
var extend = require('lodash/object/assign');
var defaults = {
branchName: 'master',
token: '',
username: '',
reponame: ''
@gourneau
gourneau / ElasticSearch.sh
Last active Dec 12, 2017
Elastic Search 1.4.2 with Oracle Java 8
View ElasticSearch.sh
### Install Oracle Java 8, this means you agree to their binary license!!
cd ~
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
sudo aptitude -y install oracle-java8-installer
### Download and Install ElasticSearch