Skip to content

Instantly share code, notes, and snippets.

View sfrias's full-sized avatar
🎯
settle for future counterparts

Santi Frias sfrias

🎯
settle for future counterparts
View GitHub Profile
@hectorcanto
hectorcanto / adr-template.md
Last active August 1, 2022 07:36
A template for Arquitecture Decision Records

ADR Template

Short Title

Short title of solved problem and solution [Describe the general problem and the chosen solution in free from in a few sentences. Leave specific details for the following sections]

# http://open-notify.org/Open-Notify-API/ISS-Location-Now/
import urllib2
import json
import paho.mqtt.client as mqtt
import time
def on_message(client, userdata, message):
try:
available = message.payload
@DavidMertz
DavidMertz / dqm-bio.txt
Last active June 24, 2025 11:50
David Mertz bio
David is founder of KDM Training, a partnership dedicated to educating developers and data
scientists in machine learning and scientific computing. Hi is currently Principal Engineer
for Service Employees International Union. He created the data science training program for
Anaconda Inc. and was a senior trainer for them. With the advent of deep neural networks he
has turned to training our robot overlords as well.
He was honored to work for 8 years with D. E. Shaw Research, who have built the world's
fastest, highly-specialized (down to the ASICs and network layer), supercomputer for
performing molecular dynamics.
@christopherlovell
christopherlovell / display.py
Last active July 16, 2025 12:34
display youtube video in jupyter notebook
from IPython.display import HTML
# Youtube
HTML('<iframe width="560" height="315" src="https://www.youtube.com/embed/S_f2qV2_U00?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>')
# Vimeo
HTML('<iframe src="https://player.vimeo.com/video/26763844?title=0&byline=0&portrait=0" width="700" height="394" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe><p><a href="https://vimeo.com/26763844">BAXTER DURY - CLAIRE (Dir Cut)</a> from <a href="https://vimeo.com/dannysangra">Danny Sangra</a> on <a href="https://vimeo.com">Vimeo</a>.</p>')
@keyboardr
keyboardr / HeadlessFragment.java
Last active December 31, 2021 01:05
A file template for creating a headless Fragment. The attach() methods add the fragment to the parent if it doesn't already exist and returns the attached fragment. The methods ensure that the parent implements the parent interface. If needed, parameters may be added to the attach() methods to supply fragment arguments.
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
#parse("File Header.java")
public class ${NAME} extends Fragment {
private static final String FRAG_TAG = ${NAME}.class.getCanonicalName();
@stephenturner
stephenturner / ggd_rf_example.r
Created February 18, 2011 21:56
ggd_rf_example.r
#load the iris data
data(iris)
# this data has 150 rows
nrow(iris)
# look at the first few
head(iris)
# splitdf function will return a list of training and testing sets