Dezoomify is now hosted on github at the following address :
You can access it online at http://ophir.alwaysdata.net/dezoomify/dezoomify.html
Dezoomify is now hosted on github at the following address :
You can access it online at http://ophir.alwaysdata.net/dezoomify/dezoomify.html
This gist is out of date The project now has a true git repository: https://github.com/lovasoa/dezoomify
This script makes one downloadable image from an image viewable via a flash zoomify interface.
#!/usr/bin/python | |
#-*-coding:utf8-*- | |
#Algorithme de recherche du clavier de téléphone portable (à 10 touches) optimal. Un clavier est optimal lorsque l'on a rarement besoin d'utiliser deux fois de suite la même touche. | |
#On considère ici que la saisie prédictive (T9) n'est pas activée | |
#Par Ophir LOJKINE | |
texte = open("texte.txt").read().decode('utf8').lower() |
# Classe principale | |
# Retourne 0 si nil, nombre sinon | |
def obj2nbr(obj) | |
return (obj == nil) ? 0 : obj | |
end | |
class Polynome | |
require 'rational' |
#Ophir.php
This code is not up to date. It is now hosted at https://github.com/lovasoa/ophir.php
ophir.php is a lightweight script that parses an open document file and outputs a simple HTML file, with very few tags (contrarily to most other tools that do the same). Currently, the script parses bold (b tag), italic (i tag), underline (u tag), quotations (blockquote tag), images (using data URIs), links, headings (h1, h2, ...), lists (ul and li), tables (table tr and td) annotations and footnotes.Le jeu de masterpendu est un mélange de mastermind et de pendu. L'ordinateur choisit un mot, et vous devez le deviner. A chaque proposition, l'ordinateur donne le nombre de lettres bien placées, et le nombre de lettres correctes, mais mal placées. Le mot choisi par l'ordinateur est forcément un mot correct en français, mais l'utilisateur peut lui soumettre n'importe quelle combinaison de lettres qu'il estime utile pour sa réflexion.
/* prime factors | |
by ophir lojkine | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define SIZE 10 | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main (int argc, char **argv) { | |
unsigned char byte; | |
unsigned char i; | |
FILE *fi = stdin; | |
FILE *fo = stdout; | |
if (fi==NULL || fo==NULL) return 1; |
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import sqlite3, sys, re | |
con = sqlite3.connect("mmssms.db") | |
cur = con.cursor() | |
req = """ | |
SELECT |
function ArrayBufferToBase64 (buff) { | |
var alph = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", | |
enc = "", | |
n,p,bits; | |
d=new Uint8Array(buff); | |
var len = buff.byteLength*8; | |
for (var offset=0; offset<len; offset+=6){ | |
n = (offset/8)|0; | |
p = offset%8; | |
bits = ((d[n]||0)<<p)>>2; |