Skip to content

Instantly share code, notes, and snippets.

View thom4parisot's full-sized avatar

Thomas Parisot thom4parisot

View GitHub Profile
@thom4parisot
thom4parisot / Gulpfile.js
Last active September 22, 2020 11:43
gulp -> npm scripts only
'use strict';
var pkg = require('./package.json');
var gulp = require('gulp');
var utils = require('gulp-util');
var source = require('vinyl-source-stream');
var isWatching = false;
var isProduction = process.env.NODE_ENV === 'production';
@thom4parisot
thom4parisot / README.md
Last active May 2, 2018 20:01
npm config + ENV variables
@thom4parisot
thom4parisot / error.log
Created January 13, 2015 11:25
Python HTP Server is slow and blows up errors when ran in KVM host Docker container
172.17.42.1 - - [13/Jan/2015 11:13:16] "GET /static/ajax-loader.gif HTTP/1.0" 500 59
----------------------------------------
Exception happened during processing of request from ('172.17.42.1', 43923)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
@thom4parisot
thom4parisot / Dockerfile
Last active August 29, 2015 14:12
Docker instance sharing with boot2docker
FROM busybox
CMD ["docker", "--tlsverify", "ps"]
FROM ubuntu:precise
# make sure system is up-to-date
RUN apt-get update -qq && apt-get install apt-utils -y && apt-get upgrade -y
# install BLAS libraries (needed by scipy)
RUN apt-get install gfortran libopenblas-dev liblapack-dev -y
# install scipy via apt, save build time
RUN apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose -y
@thom4parisot
thom4parisot / .eslintrc
Last active August 29, 2015 14:10
Asciidoctor dot-include
{
"env": {
"node": true
},
"rules": {
"global-strict": 1,
"quotes": [2, "single"]
}
}

Keybase proof

I hereby claim:

  • I am oncletom on github.
  • I am oncletom (https://keybase.io/oncletom) on keybase.
  • I have a public key whose fingerprint is 4663 7E26 7871 DF7F 2557 88EE 893C 87DF B333 5E7E

To claim this, I am signing this object:

@thom4parisot
thom4parisot / card.html
Last active August 29, 2015 14:07
bada55.io card
<article class="flip" itemscope="" itemtype="http://schema.org/Thing" data-bada55="{ color: '#bada55', name: 'badass', likeUrl: 'http://bada55.io/like/137' }">
<div class="flip-card flipped">
<header class="card-face face-front flip-trigger" style="background-color:#bada55">
<div class="inner">
<h1 class="card-title" itemprop="name">#bada55</h1>
<h2 class="card-subtitle" itemprop="alternateName">badass</h2>
</div>
</header>
<div class="card-face face-back" style="background-color:#bada55">
@thom4parisot
thom4parisot / run.sh
Created October 4, 2014 20:11
Handlebars template evaluation one liner
handlebars template.hbs -c 'handlebars' | node -e 'process.stdin.on("data", function(d){ eval(String(d)); console.log(Handlebars.templates["template.hbs"]({ items: ["Node.js", "CSS maintenables", "Open Sky"] })) })'
@thom4parisot
thom4parisot / index.adoc
Last active August 29, 2015 14:07
Asciidoc source code include rendering test
[code,javascript]
----
include::source.js[]
----

is rendered as…