Skip to content

Instantly share code, notes, and snippets.

@wrenoud
wrenoud / clean_ember-cli.js
Last active May 3, 2018 08:03
Cleans uneed dependancy from Ember-CLI bower_componants folder
// based loosely on https://gist.github.com/dschmidt/a68747348036fd6aa989
// and the answer http://stackoverflow.com/questions/24782479/how-to-debug-slow-ember-cli-broccoli-builds/26044864#26044864
var glob = require('glob')
, fs = require('fs')
, util = require('util')
, _ = require('lodash');
EMBER_FILES=[
'ember/ember.js',
'ember/ember.prod.js',
@wrenoud
wrenoud / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@wrenoud
wrenoud / CracklePop.c
Last active September 10, 2015 02:31 — forked from anonymous/README.md
#include <iostream>
using namespace std;
void main()
{
for (int i = 1; i <= 100; i++)
{
bool divisible = false;
if (i % 3 == 0)
@wrenoud
wrenoud / formatWKT.ipynb
Last active September 10, 2015 18:37
Pretties a WKT string
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"version": "2.0.9",
"replacements": [
{
"active": true,
"case": "Maintain",
"repA": "woman",
"repB": "person",
"type": "Simple"
},
@wrenoud
wrenoud / prepare-commit-msg.sh
Last active January 19, 2016 18:15 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master qm-release qm-stable fm-release fm-stable)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
@wrenoud
wrenoud / Generate.py
Last active February 18, 2016 18:24
Generates some multibeam data
# coding: utf-8
import math
import sqlite3
from matplotlib import pylab as pl
conn = sqlite3.connect('data.db')
c = conn.cursor()
c.execute('DROP TABLE BEAMS')
@wrenoud
wrenoud / ExecTest.py
Created March 3, 2016 17:04
ExecTest.py
# coding: utf-8
import struct
def with_metaclass(meta, *bases):
"""Create a base class with a metaclass. For 2/3 compatibility."""
class metaclass(meta):
__call__ = type.__call__
__init__ = type.__init__
def __new__(cls, name, this_bases, d):
if this_bases is None:
@wrenoud
wrenoud / Hsda.py
Created March 25, 2016 21:56
Hsda.py
# coding: utf-8
import os
import requests
import re
import json
# hdsa
if not os.path.exists('hdsa.html'):
req =requests.request('get','http://hdsa.org/about-hdsa/locate-resources/')
f = open('hdsa.html','w')

Keybase proof

I hereby claim:

  • I am wrenoud on github.
  • I am wrenoud (https://keybase.io/wrenoud) on keybase.
  • I have a public key ASBZHXulETM0k23_CXEIxe-irp1QZNxSvbRyUOEHZLc9ewo

To claim this, I am signing this object: