Skip to content

Instantly share code, notes, and snippets.

@arthurdarcet
arthurdarcet / Dockerfile
Last active January 28, 2019 12:31
OpenENT setup
FROM gradle:4.5-alpine as builder
ENV SB_ORG OPEN-ENT-NG
ENV SB_PROJECT springboard-open-ent
ENV SB_VERSION 3.1.12
#ENV SB_ORG opendigitaleducation
#ENV SB_PROJECT springboard
#ENV SB_VERSION 3.0.0

Keybase proof

I hereby claim:

  • I am arthurdarcet on github.
  • I am rthr (https://keybase.io/rthr) on keybase.
  • I have a public key whose fingerprint is 5563 0060 9409 C4E8 89FA 6996 AB8B DAFD F583 D7AC

To claim this, I am signing this object:

@arthurdarcet
arthurdarcet / Python.sublime-syntax
Created March 4, 2016 10:17
Python syntax for Sublime text with PEP492 support (async/await)
%YAML 1.2
---
name: Python
file_extensions:
- py
- rpy
- pyw
- cpy
- SConstruct
- Sconstruct
@arthurdarcet
arthurdarcet / 0001-fontforge-python3.patch
Created December 9, 2015 10:27
Homebrew patch fontforge-python3
From aff1b8de582e52c04f57223310ed07d562ff2d81 Mon Sep 17 00:00:00 2001
From: Arthur Darcet <arthur.darcet@m4x.org>
Date: Wed, 9 Dec 2015 11:26:50 +0100
Subject: [PATCH] fontforge python3
---
Library/Formula/fontforge.rb | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/Library/Formula/fontforge.rb b/Library/Formula/fontforge.rb
@arthurdarcet
arthurdarcet / watch.py
Last active August 29, 2015 14:27
Le Bon Coin watcher
#!/usr/bin/env python3
import argparse
import bs4
import email.mime.text
import logging
import logging.config
import re
import requests
import smtplib
#!/usr/bin/env python3
import http.client
import os
import sys
import time
import urllib.parse
CLIENTS = {
@arthurdarcet
arthurdarcet / gist:6728522
Created September 27, 2013 13:23
Variadic function in Objective-C
- (void)fun:(NSString *)first, ...
{
va_list args;
va_start(args, first);
for (NSString* arg = first; arg != nil; arg = va_arg(args, NSString*))
NSLog(@"var: %@", arg);
va_end(args);
}
@arthurdarcet
arthurdarcet / gist:6061186
Last active December 20, 2015 03:09
Weird BeautifulSoup bug
import bs4
def working_test(merge_html, main_html):
main = bs4.BeautifulSoup(main_html)
merge = bs4.BeautifulSoup(merge_html)
for tag in list(merge.body.contents):
main.body.append(tag)
print(main)