Assumed you have files with extension .ebk
stored by Kies.
Install Ruby 2.3 or later
require 'concurrent' | |
require 'benchmark' | |
max = 20 # number of tasks to process | |
n_workers = 4 # number of concurrent workers | |
results = [] # | |
lambda = -> (iter, i) { results << ('%04d' % i); d = rand(0.005)+0.001; puts("Iteration #{iter}. sleep %.3f" % d); sleep(d) } | |
workers = Array.new(n_workers, lambda) | |
iter = 0 |
source "https://rubygems.org" | |
gem 'eventmachine' | |
gem 'em-http-request' |
"<!--" | |
"><!--" | |
"||[];" | |
"--><!--" | |
"--></" | |
"----" | |
"!--<" | |
"//--></" | |
"//-->" | |
"...</" |
#!/usr/bin/env python3 | |
"""Read zip format file from stdin and write new zip to stdout. | |
With the --store option the output will be an uncompressed zip. | |
Uncompressed files are stored more efficiently in VCS. | |
Example: | |
python rezip.py --store < file.docx > file.flat.docx | |
Based on https://github.com/costerwi/rezip |
require 'active_support/all' # mb_chars | |
def simple_fuzzy_match(s1, s2) | |
levenshtein_distance( normalize_str(s1), normalize_str(s2) ) < 2 | |
end | |
def normalize_str(s) | |
s. | |
mb_chars. # convert to multibyte string (ActiveSupport::Multibyte::Chars) - required in Ruby version below 2.4 | |
downcase. # lower case for all characters |
# Project: TestDLL | |
# Makefile created by Dev-C++ 5.5.1 | |
CPP = g++.exe | |
CC = gcc.exe | |
WINDRES = windres.exe | |
OBJ = main.o | |
LINKOBJ = main.o | |
LIBS = -L"C:/Program Files/Development/Dev-Cpp/MinGW32/lib" -L"C:/Program Files/Development/Dev-Cpp/MinGW32/mingw32/lib" -static-libstdc++ -static-libgcc | |
INCS = -I"C:/Program Files/Development/Dev-Cpp/MinGW32/include" |
upstream php-handler { | |
server 127.0.0.1:9000; | |
# server unix:/var/run/php5-fpm.sock; | |
} | |
server { | |
listen 80; | |
server_name example.com localhost; | |
root /var/www; |
#!/bin/bash | |
# Full system backup with dar. Refer to http://dar.linux.free.fr/doc/Tutorial.html | |
## Configuration | |
# path to store dar backup files | |
Storage=/mnt/disk/backup/Linux | |
# name of system | |
SysName=Ubuntu_`. /etc/os-release; echo ${VERSION_ID/*, /}` |
/* | |
Simple GTK+ pipe viewer | |
Contributors: Romiras | |
Based on paned.c | |
LICENSE: GNU GPLv3 | |
*/ | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <gtk/gtk.h> |