g++ -o srtmove srtmove.cpp
This small programm uses no library.
#!/usr/bin/python3 | |
import sqlite3,sys,os.path | |
if len(sys.argv) != 3: | |
print ("Usage:\n\t%s db_file csv_data_file" % (sys.argv[0],)) | |
exit(1) | |
datatypes = (int, float, lambda s:s.strip(" \n\t\"'")) |
CREATE TABLE stop_route_link (stop_id,route_id); | |
INSERT INTO stop_route_link (stop_id, route_id) | |
SELECT DISTINCT stops.stop_id, trips.route_id from stops | |
INNER join stop_times on stop_times.stop_id=stops.stop_id | |
INNER join trips on trips.trip_id=stop_times.trip_id; |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf8" /> | |
<title>SRTmove</title> | |
<style> | |
html { | |
background-color:black; | |
} |
function levenshtein(w1, w2, costs) { | |
var line_i = []; | |
if (costs === undefined) costs = [1,1,1]; //Cost of addition, deletion, replacement | |
for(var k=0; k<=w1.length; k++) line_i.push(k); | |
for (var i=1; i<=w2.length; i++) { | |
var prev_line = line_i; | |
var line_i = [i]; | |
for (var k=1; k<=w1.length; k++) { | |
cost = (w1[k-1] == w2[i-1]) ? 0 : costs[2]; | |
line_i[k] = Math.min(line_i[k-1]+costs[0], prev_line[k]+costs[1], prev_line[k-1]+cost); |
#!/usr/bin/env python3 | |
#coding: utf8 | |
######################## | |
### doublons.py ### | |
### By Ophir LOJKINE ### | |
### LICENSE : LGPLv3 ### | |
######################## | |
import re, os, sys, mimetypes, unicodedata, threading |
// ES6 version using asynchronous iterators, compatible with node v10.0+ | |
const fs = require("fs"); | |
const path = require("path"); | |
async function* walk(dir) { | |
for await (const d of await fs.promises.opendir(dir)) { | |
const entry = path.join(dir, d.name); | |
if (d.isDirectory()) yield* walk(entry); | |
else if (d.isFile()) yield entry; |
{"wvx": "video/x-ms-wvx", "susp": "application/vnd.sus-calendar", "tmo": "application/vnd.tmobile-livetv", "m2v": "video/mpeg", "plf": "application/vnd.pocketlearn", "der": "application/x-x509-ca-cert", "plb": "application/vnd.3gpp.pic-bw-large", "plc": "application/vnd.mobius.plc", "ttc": "application/x-font-ttf", "car": "application/vnd.curl.car", "onepkg": "application/onenote", "def": "text/plain", "vcard": "text/vcard", "sus": "application/vnd.sus-calendar", "iif": "application/vnd.shana.informed.interchange", "deb": "application/x-debian-package", "m2a": "audio/mpeg", "pls": "application/pls+xml", "cgm": "image/cgm", "rdz": "application/vnd.data-vision.rdz", "ttf": "application/x-font-ttf", "ecma": "application/ecmascript", "uu": "text/x-uuencode", "meta4": "application/metalink4+xml", "roa": "application/rpki-roa", "cww": "application/prs.cww", "rdf": "application/rdf+xml", "igl": "application/vnd.igloader", "clp": "application/x-msclip", "dvb": "video/vnd.dvb.file", "sub": "text/vnd.dvb.subtitle", "ig |
exports.url = "http://test.com"; //URL of the first page of the form | |
exports.fillRules = [ //Each element is a new page in the form | |
{// First page | |
// Keys must be CSS selectors | |
// Values indicate how to fill the selected element | |
"#inputid" : "constant string value", |
<?php | |
require_once("google_api_info.php"); | |
//TODO | |
$redirect_uri = "http://localhost/D%C3%A9veloppement/HISTU/ajout_contact.php"; | |
$group_id = "6"; // Used as the default 'My Contacts' group. | |
require_once ('Google/Client.php'); | |
require_once ('Google/Http/Request.php'); |