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
#include <time.h> | |
char *w="AAAA########+++///9999AA Good %s!\n\0morning\0day\0afternoon\0evening\0night"; | |
int main(){time_t t=time(0);return printf(w+25,w+w[localtime(&t)->tm_hour]);} |
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
#include <chrono> | |
#include <cmath> | |
#include <functional> | |
#include <iomanip> | |
#include <iostream> | |
#include <thread> | |
template <typename clock, | |
std::size_t cycle_rate, | |
typename cycle_duration> |
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
auto exec_chaiscript() { | |
auto opts = { | |
chaiscript::Options::No_Load_Modules, | |
chaiscript::Options::External_Scripts | |
}; | |
chaiscript::ChaiScript engine({}, {}, opts); | |
engine.use("prime.chai"); | |
auto start = std::chrono::high_resolution_clock::now(); |
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
#ifndef SYSD_STL_UTIL | |
#define SYSD_STL_UTIL | |
#pragma once | |
#include <algorithm> | |
#include <cstddef> | |
#include <iterator> | |
#include <random> | |
#include <string> |
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
#!/bin/python3 | |
import random | |
doors = ['car', 'goat', 'goat'] | |
def monty(switch_doors): | |
random.shuffle(doors) | |
number = random.randint(0, 2) | |
remaining = [0, 1, 2] |
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
#!/bin/python3 | |
import random | |
doors = ['car', 'goat', 'goat'] | |
def print_door(secret=True, *args): | |
pass |
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
#!/bin/bash | |
REDTEXT="\e[91m" | |
GREENTEXT="\e[92m" | |
PLAINTEXT="\e[39m" | |
err_str() { | |
echo -e "$(echo $REDTEXT)$1$(echo $PLAINTEXT)" | |
} |
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
.device ATmega328P | |
.org 0x0000 | |
jmp reset | |
; mem loc for interript 0 | |
.org 0x0002 | |
jmp button_pushed | |
button_pushed: |
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
public void method212(int i, int j, int k, int l, int i1) { | |
int j1 = 256 - i1; | |
int k1 = (l >> 16 & 0xff) * i1; | |
int l1 = (l >> 8 & 0xff) * i1; | |
int i2 = (l & 0xff) * i1; | |
int i3 = j - k; | |
if (i3 < 0) | |
i3 = 0; | |
int j3 = j + k; | |
if (j3 >= menuDefaultHeight) |
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
require 'cinch' | |
require 'nokogiri' | |
require 'open-uri' | |
class FML | |
include Cinch::Plugin | |
match /fml/ | |
def initialize(*args) |