Skip to content

Instantly share code, notes, and snippets.

View wutlu's full-sized avatar
👊
I may be slow to respond.

Alper Mutlu TOKSÖZ wutlu

👊
I may be slow to respond.
View GitHub Profile
function data(array $allowed = [])
{
$source = file_get_contents('http://www.koeri.boun.edu.tr/scripts/lst0.asp');
$source = iconv('ISO-8859-9', 'UTF-8', $source);
preg_match('/<pre>(.*?)<\/pre>/s', $source, $match);
$lines = explode(PHP_EOL, $match[0]);
$lines = array_map(function($line) use ($allowed) {
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {
c = a + b;
require(c >= a);
}
function safeSub(uint a, uint b) public pure returns (uint c) {
require(b <= a);
c = a - b;
}
function safeMul(uint a, uint b) public pure returns (uint c) {
@wutlu
wutlu / boltcache_benchmark_pipelined.txt
Last active December 18, 2025 19:17
BoltCache Pipelined Benchmark
package main
import (
"bufio"
"fmt"
"net"
"sync"
"time"
)
@wutlu
wutlu / boltcache_benchmark.txt
Last active December 18, 2025 19:31
BoltCache Benchmark
package main
import (
"bufio"
"fmt"
"net"
"strconv"
"sync"
"sync/atomic"
"time"