This file contains hidden or 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 getopt | |
| import re, shutil, tempfile | |
| import os | |
| import subprocess | |
| import sys | |
| # http://stackoverflow.com/questions/4427542/how-to-do-sed-like-text-replace-with-python | |
| def sed_inplace(filename, pattern, repl): | |
| ''' |
This file contains hidden or 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
| // compile: gcc main_epoll.c -o main_epoll -std=c99 | |
| // run: ./main_epoll | |
| // environment: Linux | |
| #define MAX_EVENTS 5 | |
| #define READ_SIZE 5 | |
| #include <signal.h> | |
| #include <stdio.h> | |
| #include <string.h> |
This file contains hidden or 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.util.BitSet | |
| const val MIN = 6 | |
| const val SEC = 11 | |
| fun countSec(m: Int, s: Int): Int { | |
| return (60 * m) + s | |
| } |