-
name of the current banch and nothing else (for automation)
git rev-parse --abbrev-ref HEAD
-
all commits that your branch have that are not yet in master
git log master..<HERE_COMES_YOUR_BRANCH_NAME>
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
# 18:56 | |
# 19:10 | |
import sys | |
def do_loops(code): | |
loopstack = [] | |
loops = {} | |
for i, char in enumerate(code): | |
if char == "[": |
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 ssl | |
import threading | |
import time | |
import websocket | |
from websocket import WebSocketException as WSException | |
SSLOPT = {"cert_reqs": ssl.CERT_NONE} | |
ws = None | |
def run(): |
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
# usage: just import this file and use the solve_sudoku function with your own sudokus | |
# this ↓ is how a sudoku is structured: a list with 81 fields (read row-by-row or column-by-column) | |
TEST_SUDOKU = [ | |
None, None, None, 8, 1, 3, 5, 4, None, | |
2, None, 1, None, 4, 5, None, 6, 3, | |
None, 4, None, None, None, None, None, None, None, | |
None, None, None, None, 2, None, None, None, 9, | |
None, None, 9, None, None, None, 2, None, None, | |
7, None, None, None, 3, 4, None, None, None, | |
None, None, None, None, None, None, None, 9, None, |
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> | |
unsigned long add(unsigned long a, unsigned long b) | |
{ | |
unsigned long xor = a ^ b; | |
unsigned long and = a & b; | |
while (and) { | |
a = xor; | |
b = and << 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
# Info: | |
# | |
# To run this script, install urwid (http://urwid.org/) via your favourite | |
# package manager. | |
import math | |
import urwid | |
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 | |
import argparse | |
import re | |
import subprocess | |
def parse_args(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument( | |
"output_file", |
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
extends Camera | |
""" | |
Space/Enter - capture cursor | |
Escape - free cursor | |
WASDQE - move | |
Shift - fast movement | |
Ctrl - slow movement | |
""" |
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
Calculate bunny like so: | |
f(t) = \sum_{n=1}^{\infty} \left( c(n) e^{i n t} + c(-n) e^{- i n t} \right) | |
{n, c(n), c(-n)} | |
{1, 85.2475 - 169.755 I, 28.0975 - 9.90891 I} | |
{2, 6.29048 - 2.67816 I, -0.746606 + 22.7351 I} | |
{3, -26.7847 - 11.3627 I, -6.43327 - 2.05265 I} | |
{4, 4.23445 + 7.35356 I, 10.1179 + 4.58626 I} | |
{5, -6.41438 - 7.65797 I, -6.39548 - 11.585 I} | |
{6, -7.0104 - 0.501367 I, -3.28289 - 4.8017 I} |
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
{-# LANGUAGE OverloadedStrings #-} | |
module Haboli.Euphoria.WegaBorad where | |
import Control.Monad | |
import Control.Monad.Trans.Class | |
import Control.Monad.Trans.State | |
import Data.Char | |
import Data.Foldable | |
import Data.List |
OlderNewer