Skip to content

Instantly share code, notes, and snippets.

View kinnou02's full-sized avatar

Alexandre Jacquin kinnou02

View GitHub Profile
@kinnou02
kinnou02 / r.md
Last active January 19, 2018 10:15

SIRI ne renvoit pas de prochain départ

==> on fait confiance, on ne renvoit pas de prochains de départs

SIRI ne renvoit pas de prochain départ pour la ligne qui nous concerne (mais éventuellement pour une autre ligne passant au même point d’arrêt)

==> idem cas précédent, on renvoit pas de prochains départs

SIRI nous renvoit des départs, avec une destination que nous ne retrouvons pas

local toc, privateData = ...
local AddonId = toc.identifier
EM = {}
EM.Event = {}
EM.Event.Trigger = {}
EM.Mail = {}
EM.Mail.List = {}
EM.UI = {}
EM.UI.Created = false
@kinnou02
kinnou02 / .cvimrc
Last active December 30, 2018 14:51
set autoupdategist
let mapleader = "<Space>"
command g tabnew google
let searchengine searx = "https://searx.me/search?q="
let defaultengine = "google"
set numerichints
set typelinkhints
test = {}
local context = UI.CreateContext("main")
local window = UI.CreateFrame("SimpleWindow", "window", context)
local inviteButton = UI.CreateFrame("RiftButton", "LuaPadloadButton", window)
-- Addon initialisation
-- Afficahge de la boit de dialogue d'invitation --
function Dialog:show(text, yesLabel, noLabel, target, yesCallback, noCallback)
if not self.dialog then
self:init()
end
local dialog = self.dialog
-- Rend visible la boite de dialogue --
dialog:SetVisible(true)
self.dialogText:SetText(text)
version: '2'
services:
instances_configurator:
build: ./instances_configurator
volumes_from:
- tyr_beat
- tyr_worker
- jormungandr
volumes:
py.test --doctest-modules (env: tartare)
============================================================================================================ test session starts =============================================================================================================
platform linux -- Python 3.5.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /home/kinou/workspace/tartare, inifile:
collected 52 items / 4 errors
tests/helper_test.py .....
tests/integration/calendar_handle_test.py ....
tests/integration/update_data_test.py .....
tests/integration/mongo/contributors_api_test.py .............
[[email protected]] out: Requirement already up-to-date: wsgiref==0.1.2 in /usr/lib/python2.7 (from -r /tmp/tyr_requirements.txt (line 28))
[[email protected]] out: Collecting setuptools (from Flask-SQLAlchemy==1.0->-r /tmp/tyr_requirements.txt (line 4))
[[email protected]] out: Downloading setuptools-20.4-py2.py3-none-any.whl (508kB)
[[email protected]] out: Installing collected packages: Flask-RESTful-master, setuptools
[[email protected]] out: Running setup.py install for Flask-RESTful-master
[[email protected]] out: Found existing installation: setuptools 20.3.1
[[email protected]] out: Uninstalling setuptools-20.3.1:
[[email protected]] out: Successfully uninstalled setuptools-20.3.1
[[email protected]] out: Rolling back uninstall of setuptools
[[email protected]] out: Exception:
@kinnou02
kinnou02 / gist:8021247
Created December 18, 2013 12:07
"Sun Dec 09 2012" to date
#include <stdio.h>
#include <time.h>
main(){
char* date = "Sun Dec 09 2012";
struct tm tm = {0, 0, 0, 0, 0, 0, 0 ,0, 0};
strptime(date, "%a %b %d %Y", &tm);
time_t t = mktime(&tm);
printf("%d", t);
}
@kinnou02
kinnou02 / gist:7872124
Last active December 30, 2015 19:09
multibyte compliant substr
std::string substr(const std::string& str, size_t nb){
std::stringstream result;
auto it = str.begin();
unsigned char c;
size_t count = 0;
while(it != str.end() && count < nb){
c = *it;
result << c;
if(c >= 0xc0){
++it;