Skip to content

Instantly share code, notes, and snippets.

View dulacp's full-sized avatar
🎯
Focusing

Pierre Dulac dulacp

🎯
Focusing
View GitHub Profile
@dulacp
dulacp / README.md
Last active July 24, 2018 10:04
CRMint - deploy master branch with Google Cloud Shell

Deploy CRMint on Google Cloud Platform

Step by step deployment

  1. Go to https://console.cloud.google.com
  2. Select or create your project
  3. Click "Cloud Shell" button

You are now ready to run these commands:

@dulacp
dulacp / debounce.py
Created December 4, 2018 00:39 — forked from walkermatt/debounce.py
A debounce function decorator in Python similar to the one in underscore.js, tested with 2.7
from threading import Timer
def debounce(wait):
""" Decorator that will postpone a functions
execution until after wait seconds
have elapsed since the last time it was invoked. """
def decorator(fn):
def debounced(*args, **kwargs):
def call_it():
@dulacp
dulacp / download.py
Created August 26, 2020 17:02
Download all images from Zenfolio
import os
import re
import requests
import zenapi
_dir_root = '~/Downloads/ZenfolioBackup'
def process_gallery(gallery, curr_dir):
@dulacp
dulacp / opera.fen
Last active October 12, 2022 13:14
Opera Game FEN
rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1
rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR w KQkq e6 0 2
rnbqkbnr/pppp1ppp/8/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq - 1 2
rnbqkbnr/ppp2ppp/3p4/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq - 0 3
rnbqkbnr/ppp2ppp/3p4/4p3/3PP3/5N2/PPP2PPP/RNBQKB1R b KQkq d3 0 3
rn1qkbnr/ppp2ppp/3p4/4p3/3PP1b1/5N2/PPP2PPP/RNBQKB1R w KQkq - 1 4
rn1qkbnr/ppp2ppp/3p4/4P3/4P1b1/5N2/PPP2PPP/RNBQKB1R b KQkq - 0 4
rn1qkbnr/ppp2ppp/3p4/4P3/4P3/5b2/PPP2PPP/RNBQKB1R w KQkq - 0 5
rn1qkbnr/ppp2ppp/3p4/4P3/4P3/5Q2/PPP2PPP/RNB1KB1R b KQkq - 0 5
rn1qkbnr/ppp2ppp/8/4p3/4P3/5Q2/PPP2PPP/RNB1KB1R w KQkq - 0 6
@dulacp
dulacp / README.md
Last active May 17, 2024 09:59
Test Tables

List of tables to test our parser