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
print("hello world") |
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
++++++++++[>++++++++++>+<<-]>[>.<-] |
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
>++++++++++>>+<+[[+++++[>++++++++<-]>.<++++++[>--------<-]+<<]>.>[->[ | |
<++>-[<++>-[<++>-[<++>-[<-------->>[-]++<-[<++>-]]]]]]<[>+<-]+>>]<<] |
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
+++++++. |
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
#!/usr/bin/env python3 | |
from argparse import ArgumentParser | |
import os | |
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide" | |
import pygame | |
parser = ArgumentParser(prog="balls-equilibrium", | |
description="nice pygame simulation") | |
parser.add_argument("--width", type=int, default=200) |
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
#!/usr/bin/env python3 | |
""" | |
Script to select telegram chat history dump in json format | |
Dump consists of chat's information (name, members, etc). | |
chat["messages"] is usually the biggest value there. | |
It is a list of all messages sent (except the ones which were deleted) | |
Every message is a dictionary, too. | |
Example message: | |
{'date': '2029-06-33T05:33:11', | |
'date_unixtime': '1455555555', |
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 <fstream> | |
#include <iostream> | |
#include <iterator> | |
#include <vector> | |
int main(int argc, char **argv) | |
{ | |
std::fstream file(argv[1], std::ios::in); | |
std::istreambuf_iterator<char> fstart(file), fend; | |
std::vector<unsigned char> itape(fstart, fend); |
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
#!/usr/bin/env lua | |
euclid_gcd = {} | |
function euclid_gcd.var1(m, n) | |
local r = 1 | |
while r ~= 0 do | |
r = m % n | |
m = n | |
n = r |
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
#!/usr/bin/env bash | |
sudo vim /etc/default/grub | |
grub-mkconfig -o /boot/grub/grub.cfg |
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
-- JOIN | |
SELECT customer.first_name, customer.last_name, | |
time(rental.rental_date) as rental_time | |
FROM customer-- as c | |
INNER JOIN rental -- as r | |
ON customer.customer_id = rental.customer_id -- USING customer_id | |
WHERE date(rental.rental_date) = "2005-06-14"; | |
-- TEMP TABLE | |
CREATE TEMPORARY TABLE actors_j |
OlderNewer