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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz | |
CPU Family: 0x6 |
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> | |
#include <sys/time.h> | |
int repetitions = 100000000; | |
double time_diff(struct timeval x, struct timeval y); | |
double native_add(double a, double b) { | |
double x; | |
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
from math import sqrt | |
from time import time | |
def standup_hash(i): | |
first_six_dp = str(sqrt(sqrt(sqrt(sqrt(sqrt(i)))))).split('.')[1][:6] | |
nums = [x for x in first_six_dp] | |
nums.sort() | |
return ''.join(nums) |
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 random | |
import decimal | |
from fractions import gcd | |
decimal.getcontext().prec = 10 | |
class PiCalculator: | |
def __init__(self): |
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
operands = { | |
'+': lambda a, b: a + b, | |
'-': lambda a, b: a - b, | |
'x': lambda a, b: a * b, | |
'/': lambda a, b: a / b | |
} | |
def parse(eq): | |
bits = [] |
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
ALTER TABLE `table_1` ADD | |
( | |
`nb_something_else` INTEGER | |
); |
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
<?php | |
$foo = 'This, yes, is insane...'; | |
${$foo} = 1; | |
${'This gets worse...'} = 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
<?php | |
class Vehicle { | |
private $speed; | |
private $distance_travelled; | |
private $time_taken; | |
public function setSpeed($speed) { | |
$this->speed = $speed; | |
} | |
public function travelTime($time) { |
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
<?php | |
class SlowClockCalculator { | |
private $target_hour = 0; | |
private $target_minute = 0; | |
private $slow = 0; | |
private $difference = 0; | |
private $result = 0; | |
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
program HelloWorld | |
write (*,*) 'Hello, world!' | |
end program |
NewerOlder