Skip to content

Instantly share code, notes, and snippets.

René Mujica Moreau rmujica

Block or report user

Report or block rmujica

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andy-thomason
andy-thomason / Genomics_A_Programmers_Guide.md
Created May 14, 2019
Genomics a programmers introduction
View Genomics_A_Programmers_Guide.md

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

https://www.genomicsplc.com

@sinclairtarget
sinclairtarget / bernoulli.c
Created Aug 17, 2018
Lovelace's Note G Program in C
View bernoulli.c
#include <stdio.h>
/*
* Calculates what Ada Lovelace labeled "B7", which today we would call the 8th
* Bernoulli number.
*/
int main(int argc, char* argv[])
{
// ------------------------------------------------------------------------
// Data
@cryptogoth
cryptogoth / Rinkeby.md
Last active Aug 29, 2019
How to get on Rinkeby Testnet in less than 10 minutes
View Rinkeby.md

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

@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 es6-iterable-binary-search-tree.js
'use strict';
/*
* Binary search tree with in-order iteration.
* http://greim.github.io/gen/dist/00-intro.html
*/
class Tree {
add(value) {
if (this.root) this.root.add(value);
View FastMultiDexProguardDevBuild
/*
* Copyright (C) 2015 J.T. Gilkeson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@mixxorz
mixxorz / waveform.py
Last active Aug 22, 2019
Generate waveform images from audio files
View waveform.py
# Requires pydub (with ffmpeg) and Pillow
#
# Usage: python waveform.py <audio_file>
import sys
from pydub import AudioSegment
from PIL import Image, ImageDraw
@sbrl
sbrl / Vector.mjs
Last active Aug 30, 2019
[Vector.mjs] A simple ES6 Vector class. #microlibrary
View Vector.mjs
"use strict";
/******************************************************
************** Simple ES6 Vector2 Class **************
******************************************************
* Author: Starbeamrainbowlabs
* Twitter: @SBRLabs
* Email: feedback at starbeamrainbowlabs dot com
*
* From https://gist.github.com/sbrl/69a8fa588865cacef9c0
@paxan
paxan / tornado_force_https.py
Last active Nov 23, 2015
A hack to make Tornado web server redirect http requests to https for Heroku or similar reverse-proxied deployments
View tornado_force_https.py
from __future__ import absolute_import, print_function
import os
import tornado.httpserver
import tornado.ioloop
import tornado.web
def create_server(*args, **kwargs):
'''
@sgnl
sgnl / postgres-brew.md
Last active Oct 17, 2019
Installing Postgres via Brew (OSX) (outdated see top most note)
View postgres-brew.md

Outdated note: the process is a lot easier now: after you brew install postgresql you can initialize or stop the daemon with these commands: brew services start postgresql or brew services stop postgresql.

new out put may look like

To have launchd start postgresql now and restart at login:
  brew services start postgresql
Or, if you don't want/need a background service you can just run:
  pg_ctl -D /usr/local/var/postgres start
You can’t perform that action at this time.