Skip to content

Instantly share code, notes, and snippets.

Avatar

Sébastien Arnaud arnaudsj

View GitHub Profile
@arnaudsj
arnaudsj / .block
Last active Aug 16, 2019
fresh block
View .block
license: mit
@arnaudsj
arnaudsj / chromeos-crosh-custom-setup.md
Created Feb 25, 2018 — forked from diffficult/chromeos-crosh-custom-setup.md
Customize your ChromeOS fonts - working April 2017
View chromeos-crosh-custom-setup.md

Customize Chromebook Chrosh Shell Environment

Requirement: Chromebook, Common Sense, Commandline Ablity, 1 hour of time

Dear developers with a spare Chromebook lets inject a little personalization into your Crosh shell with custom fonts, the solarized theme, and extra secure shell options.

Also, keep in mind that the terms Chrosh, Chrosh Window, and Secure Shell all refer to various versions and extentions built around the ChromeOS terminal. Settings that affect the ChromeOS terminal are global.

Custom Fonts

@arnaudsj
arnaudsj / chromeos-crosh-custom-setup.md
Created Feb 25, 2018 — forked from aaronhalford/chromeos-crosh-custom-setup.md
Customize ChromeOS Crosh Terminal with Custom Fonts and Solarized Dark Theme
View chromeos-crosh-custom-setup.md

Customize Chromebook Chrosh Shell Environment

Requirement: Chromebook, Common Sense, Commandline Ablity, 1 hour of time

Dear developers with a spare Chromebook lets inject a little personalization into your Crosh shell with custom fonts, the solarized theme, and extra secure shell options.

Also, keep in mind that the terms Chrosh, Chrosh Window, and Secure Shell all refer to various versions and extentions built around the ChromeOS terminal. Settings that affect the ChromeOS terminal are global.

Custom Fonts

View data.json
{
"nodes": [
{"id": "Myriel", "group": 1},
{"id": "Napoleon", "group": 1},
{"id": "Mlle.Baptistine", "group": 1},
{"id": "Mme.Magloire", "group": 1},
{"id": "CountessdeLo", "group": 1},
{"id": "Geborand", "group": 1},
{"id": "Champtercier", "group": 1},
{"id": "Cravatte", "group": 1},
@arnaudsj
arnaudsj / bootstrapping.markdown
Created Jun 7, 2016 — forked from daveliepmann/bootstrapping.markdown
Implementing Sugar & James’ paper, "Finding the number of clusters in a data set: An information theoretic approach" in Clojure — Part 4
View bootstrapping.markdown

Implementing the k-means jump method: Part Four

This fourth and final part of our exploration into the jump method wraps things up by following a basic application of the technique through to a search for results we can be confident in.

We'll reuse functions from rest of the series (Part One, Part Two, Part Three). You'll also want the original paper handy to refer back to their charts.

First, we're going to return to several prior data sets:

@arnaudsj
arnaudsj / pydigits.jl
Last active Jan 31, 2016
PyDigits.jl (generate Pi digits)
View pydigits.jl
# The Computer Language Benchmarks Game
# http://benchmarksgame.alioth.debian.org/
# created by Sébastien Arnaud <arnaudsj@gmail.com>
# inspired from Python version: http://benchmarksgame.alioth.debian.org/u64q/program.php?test=pidigits&lang=python3&id=5
# modification suggested by ScottPJones &
# Performance on Macbook 12" Retina (1.3Ghz)
# Julia v0.4.3
View osx-for-hackers.sh
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
View gist:15c68fb142ba01ab06a2
"""
This is a batched LSTM forward and backward pass
"""
import numpy as np
import code
class LSTM:
@staticmethod
def init(input_size, hidden_size, fancy_forget_bias_init = 3):
@arnaudsj
arnaudsj / core.clj
Last active Aug 29, 2015
Spark streaming tweets using Flambo Clojure library
View core.clj
(ns flambo-streaming-101.core
(:require [flambo.api :as f]
[flambo.streaming :as fs]
[flambo.conf :as fconf]
[flambo.function :refer [pair-function]]
[clj-time.format :as tf]
[clj-time.core :as tc]
[clojure.tools.trace :refer [trace]]
[clojure.java.shell :refer [sh]]
[clojure.pprint :refer [pprint]]
View Clojure.sublime-settings
// installed Clojure packages:
//
// * BracketHighlighter
// * lispindent
// * SublimeREPL
// * sublime-paredit
{
"word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?",
"paredit_enabled": true,