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 csv | |
f = open("statement.csv", "r", encoding="iso8859_13") | |
#def reencode(file): | |
# for line in file: | |
# yield line.decode('iso8859_13').encode('utf-8') | |
r = csv.reader(f, delimiter=";", quotechar='"') | |
l = [line for line in r] |
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
#include <Wire.h> | |
class LCDI2C4Bit { | |
public: | |
LCDI2C4Bit(int devI2CAddress, int num_lines, int lcdwidth); | |
void commandWrite(int command); | |
void init(); | |
void print(int value); | |
void printIn(char value[]); | |
void clear(); |
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 os | |
import shutil | |
directory_name = "playlist/" | |
playlist_name = "playlist.m3u" | |
f = open(playlist_name, "r") | |
files = [] | |
for line in f: | |
line = line.strip().strip("\n").strip("\r") |
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
#!/bin/bash | |
#NAT script from !!!!!!!!!!!!!!!, modified by CRImier | |
# Exit status 0 if operation is correct | |
# Exit status 1 if trying to use last interface used when running for the first time | |
# Exit status 2 if interface doesn't exist | |
EIF='' | |
IIF='eth0' | |
PATH=/usr/sbin:/sbin:/bin:/usr/bin | |
LOGFILE=/etc/nat-if.conf | |
touch $LOGFILE |
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 | |
import os | |
import sys | |
import web | |
web.config.debug = False | |
from web import database | |
BASEPATH = "/home/user/Scans" | |
DIR = "/var/lib/pybssort/" | |
DB_NAME = os.path.join(DIR, "pybssort.db") |
NewerOlder