View insertSort.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
read N | |
read tab[0] | |
for (( i=1; i<N; i++ )); do | |
read x | |
j=0 | |
k=$i | |
while [ $k -gt $j ] | |
do | |
m=$((($j+$k)/2)) | |
if [ $x -lt ${tab[$m]} ]; then |
View Time.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace app; | |
class Time | |
{ | |
private $startTime, $reponseTime; | |
public function __construct(){ | |
$this->startTime = microtime(true); |
View Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CXX=g++ | |
FLAGS=-Wall | |
LFLAGS=-lglut -lGL -lGLU | |
SRC=. | |
EXEC=. | |
SRCS=$(wildcard $(SRC)/*.cpp) | |
EXECS=$(SRCS:$(SRC)/%.cpp=$(EXEC)/%.out) |
View Huffman.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class Huffman{ | |
/** | |
* Représente un noeud pour un arbre binaire | |
* | |
* Peut avoir une valeur, un nombre d'occurence, un fils gauche et un fils droit |
View index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" src="main.js"></script> | |
<style type="text/css"> | |
html, body { | |
margin: 0px; | |
} |
View webCheck.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
Set a red alarm on a given light when the specified website is down | |
""" | |
import os | |
from phue import Bridge | |
from time import sleep |
View kmean.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Kmean on a CSV data set | |
# 2016 | |
import sys | |
import csv | |
if len(sys.argv) < 2: | |
print "USAGE : %s csv-file" % (sys.argv[0]) |
View regex.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Duik translation files | |
----------------------- | |
DutranslatorArray.push(["Duik - Loading icons",0,"Duik - Chargement des icônes"]); | |
\\"([^\\"\\](?:\\.[^\\"\\])?)\\" , (\\d) , \\"([^\\"\\](?:\\.[^\\"\\])?)\\" ]\); (?:\/\/(.))* | |
Capture les 3 ou + paramètres entre ([ et )] | |
Dutranslator.languages.push(['fr','Français']); | |
'([^\\\\\\*\\.\\s/]+)','([^\\\\\\*\\.\\s/]+)' | |
Capture le code et le language name |
View Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GB_NAME := hello_world | |
all: $(GB_NAME).gb | |
$(GB_NAME).gb: $(GB_NAME).o | |
rgblink -o $@ $< | |
rgbfix -v -p 0 $@ | |
$(GB_NAME).o: $(GB_NAME).ds | |
rgbasm -o $@ $< |
View substance_utils.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sd | |
def print_selected_nodes_properties(): | |
"""Show all inputs and outputs of a node.""" | |
context = sd.getContext() | |
app = context.getSDApplication() | |
packageMgr = app.getPackageMgr() | |
uiMgr = app.getQtForPythonUIMgr() | |
node = uiMgr.getCurrentGraphSelection()[0] |
OlderNewer