Skip to content

Instantly share code, notes, and snippets.

View ogregoire's full-sized avatar

Olivier Grégoire ogregoire

  • Europe
View GitHub Profile
@ogregoire
ogregoire / WtfCreator.java
Created December 8, 2022 10:15 — forked from nikialeksey/WtfCreator.java
Joshua Bloch Wtf.java break-in
import org.apache.commons.math3.analysis.interpolation.NevilleInterpolator;
public class WtfCreator {
public static void main(String[] args) {
var text = "Hello, world!\n";
double[] x = new double[text.length() + 1];
double[] y = new double[text.length() + 1];
for(var i = 0; i < text.length(); i++) {
x[i] = i;
import bisect
class NFA(object):
EPSILON = object()
ANY = object()
def __init__(self, start_state):
self.transitions = {}
self.final_states = set()
self._start_state = start_state
@ogregoire
ogregoire / GitConfigHttpProxy.md
Created April 19, 2019 15:19 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

##In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like: