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
from flask import Flask, request, jsonify | |
import dateparser | |
app = Flask(__name__) | |
@app.route('/', methods=['POST']) | |
def index(): | |
data = request.json | |
text = data.get('content') |
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
start LDA mul_a2 | |
STO mul_r | |
mul_p LDA rand | |
SUB mul_s | |
STO rand | |
BRZ mul_e | |
LDA mul_a2 | |
ADD mul_r | |
STO mul_r |
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
seed INP | |
STA 99 | |
BRA isquare | |
isquare LDA 99 | |
STA 98 | |
STA 97 | |
BRA square | |
square LDA 97 |
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
start INP | |
BRZ end | |
STA 98 | |
SUB 99 | |
BRP store | |
LDA 97 | |
STA 98 | |
BRA start | |
store LDA 98 |
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
fn main() { | |
const TARGET: usize = 1_000_000_000; | |
let o = sieve(TARGET, 3, 5); | |
for i in 0..o.len() { | |
if !o[i] { | |
println!("{}", i) | |
} |
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
fn main() { | |
const TARGET: usize = 40; | |
let (f, b, o) = fizz_buzz(TARGET, 3, 5); | |
for i in 0..f.len() { | |
println!("{:02} {}{}{}", i, | |
if f[i] { "fizz " } else { " " }, | |
if b[i] { "buzz " } else { " " }, |
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
import json | |
from os import listdir | |
def add(args): | |
d = schema.copy() | |
d['title'] = input('Add a title >> ') | |
d['body'] = input('Add a body >> ') | |
other = input('Add another field (name: value) or press enter to skip >> ') | |
while other != '': |
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
import pygame | |
from math import cos, sin, pi | |
from numpy import matrix | |
from time import sleep | |
from random import randint | |
WHITE = (255, 255, 255) | |
WIDTH = 500 | |
HEIGHT = 500 |
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
ln -s /dev/stdout ./stdout.wav |
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
Afrikaans (af) | |
Amharic (am) | |
Arabic (ar) | |
Azerbaijani (az) | |
Bashkir (ba) | |
Belarusian (be) | |
Bulgarian (bg) | |
Bengali (bn) | |
Bosnian (bs) | |
Catalan (ca) |