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
from github import Github | |
from pygit2 import clone_repository | |
import random | |
import string | |
import json | |
import os | |
path = "/home/shajeen/Documents/git_stared/" | |
g = Github("git personal access token") |
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
@echo off | |
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) | |
@rem *** Disable Some Service *** | |
sc stop DiagTrack | |
sc stop diagnosticshub.standardcollector.service | |
sc stop dmwappushservice | |
sc stop WMPNetworkSvc | |
sc stop WSearch |
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
(* ocamlfind opt -package sequence,benchmark -linkpkg truc.ml -o truc; ./truc*) | |
open Sequence.Infix | |
type op = | |
| Add | |
| Mult | |
| Div | |
| Minus |
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/env python | |
# -*- coding: utf-8 -*- | |
# Draw psql output as iTerm2 v3 inline graph using matplotlib | |
# Author: Alexander Korotkov <a.korotkov@postgrespro.ru> | |
import sys | |
import re | |
import warnings | |
import matplotlib | |
matplotlib.use("Agg") |
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
package perf; | |
import java.util.ArrayList; | |
import java.util.LinkedList; | |
import net.tuis.ubench.UBench; | |
public class Lists { | |
public static void main(String[] args) throws Exception { | |
final UBench bench = new UBench("ArrayList VS LinkedList"); |
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
package com.kenfogel.performance.loaders; | |
import java.util.*; | |
import java.util.concurrent.TimeUnit; | |
import org.openjdk.jmh.annotations.*; | |
/** | |
* Performs a set of tests to determine the Big-O performance of an array list, array deque, | |
* and linked list. | |
* |
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
/* | |
Exemple de réutilisation opendata | |
_ _ _ ___ ___ | |
/_\ | \| | __| _ \ | |
/ _ \| .` | _|| / | |
/_/ \_\_|\_|_| |_|_\ | |
Description : installations radioélectriques de plus de 5 watts, hormis celles de l'Aviation Civile et des ministères de la Défense et de l'Intérieur. |
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.regex.*; | |
public class AS32J { | |
static public String getContents(File file) { | |
StringBuffer contents = new StringBuffer(); | |
try { | |
BufferedReader input = new BufferedReader(new FileReader(file)); | |
try { | |
String line = null; |