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 python3 | |
import random | |
################################################# | |
# globals | |
# | |
################################################# | |
arr0 = [] |
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.company; | |
import java.util.Scanner; | |
import java.util.HashMap; | |
public class Main { | |
// / n \ | |
// | --- | | |
// \ d /(b) |
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 <iostream> | |
using namespace std; | |
int main() { | |
unsigned long long int fNum = 0; | |
unsigned int div = 0; | |
cin >> fNum >> div; | |
//fNum = 11527523930876953; | |
//div = 26673; |
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 <stdio.h> // sprintf(), fopen(), fscanf(), printf() | |
#include <stdlib.h> // malloc() | |
unsigned char bArr0[] = {0x20, 0x00, 0x53, 0x00, 0x51, 0x00, 0x4c, 0x00}; | |
int takeByteArr(char* fName, int bStart, int bLength, unsigned char* out) { | |
FILE* f = fopen(fName, "rb"); | |
if(fseek(f, bStart, SEEK_SET) != 0) { | |
fclose(f); | |
return -1; |
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> | |
<meta charset="UTF-8"> | |
<title>imposition</title> | |
<link rel="stylesheet" href="css/normalize.css"> | |
<link rel="stylesheet" href="css/style.css"> | |
<script src="js/marked.min.js"></script> | |
<script src="js/knoTiler.js"></script> |
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
""" | |
A couple of tools to build a database URL (dialect[+driver]://user:password@host:port/dbname). | |
Examples of such URLs: | |
postgresql://scott:tiger@localhost/test | |
mysql+pymysql://scott:tiger@localhost/foo | |
oracle://scott:tiger@127.0.0.1:1521/sidname | |
Application examples: | |
env_mapping = { |