Skip to content

Instantly share code, notes, and snippets.

Karol Marcjan szabba

Block or report user

Report or block szabba

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7ae32e325d35feab04ff46cc5214060f
If { else_ = List [List [Literal (String "悿󬝑󗮊񿜦󵝴򡳶򛫊􊂾񶆒򊇩"),Literal (String "막𝿢򡁽򶇑񫀜굦󙐾򏁾𪿔掸"),Literal (String "󌳭񟕨𽟄񝰟򘽔ᯒ򼼷񮂲𱂯󟄜"),Literal (String "󝟅𵮬򃩘򝏜󘨆񩺥񍝽𻦍󓰲򟑂"),Literal (String "񣕔𰮪𯷦񬿱𴣾򝏆𩜻𐴊𰃗񬸒"),Literal (String "󉹧񡦋󨤄􆭋󮄇򞬲񽁖𱶨򼴔󗵨"),Literal (String "󼙳􏰪򳂘󝄾󪐆𥝾🌈򦫓󈏌𑊱"),Literal (String "񣏝񣀱󏒺􊂅񍼆𨲢򩅯񶩦𤛣񣨙"),Literal (String "璱򝅤򄺮榒򻦀󢢕𡭟󔾾􄤪𲺂"),Literal (String "򔸍򐱝򼕕񅎨􀙕󺣡𣡉𚧺􈑮𴥯")],List [Literal (String "􈶙矤𡖯󴌗𯇔񏰑򺶧񊥩򩐉񨛑"),Literal (String "򩹌𽯭񾦒󄐳㾲񣬉򆷼񿏨񵰠𞢲"),Literal (String "񘖑󟁆𛾂𚪇𲫮򁧟⳻򯑺福򲝸"),Literal (String "𝄠򛝠􌂛𽑃󎅱񗮞񢝧򫓊󐯋𛫃"),Literal (String "򮜱𢜰􊽼󐥬򸪉񁔮򔋛󉉫󳐀򑇚"),Literal (String "𤢖򭌂𧘾񜑌򐊄󟪽󕳗񷒷񜅱񆞪"),Literal (String "󟭙񔆵򲴨񲭍򁅸󃏌􂵲󻀿󴧊񉻱"),Literal (String "񃎾񧍱󿁷𾺪򧰠󕝢򌠳󊷯􃅝򜄩"),Literal (String "􎪀񏡏𫎶󹭮𼽵򺔰𠷄󠨮񝝓񇤡"),Literal (String "񎧃񍜊𞜔򐬀󔶡􆆸򜅨𝾂󥴮򋑁")],List [Literal (String "󦪘򰸦𛝙򯰩򸈊󈵊򪉍񡫔󞨵񜯢"),Literal (String "󂈟򶧶񔱊􍋝󏕕񊐊􅨵񏐬󟙌󠷧"),Literal (String "򑍜򵰼𛚧󬺝ꇋ񱹀񝜆􀎞񝱟𑎺"),Literal (String "񗍵򕂢򳏜񾶍򣗅󝋁󤦘􏼭񝝻򡋍"),Literal (String "񮅇󒽺𖺉𡔐񨜦􇐒󬇴𝫶򭷀񅼴"),Literal (String "󾱈򃹃񖄸󉅓񨰚򒀌򿉔񏄭󂸬펷"),Literal (String "󧂳􇧶󏛖򨷼􍪫𼢼󀓩𧂤󇷺𼄞"),Literal (String "󙞫𑐙𘞜򣳁򂈔󚧌򩓰򢻥𔂫𫶲"),Literal (String "𑌫󧍼󙆗󨛝𭫝񌵔񘳐󦚦񁹴󣯀"),Literal (String "󶧼𡬅𺋿򙬔󘲝󳶵򣐛𣴄񨑀񤉔")],List [Literal (String "󀹩򖺅򮗻񸡜󸂋򴂤󘩀󛗦񨎥򳩁"),Literal (String "󣡶󅊓එ񯿡󨎹𴄒򩱠󔤱𝙏񈙎"),Literal (String "揮
View check_handle.go
func runBuild(ctx context.Context, repos *repo.Set, flags *Flags) error {
phase := "syncing repos"
handle err {
return oops.Wrapf(err, "problem " + phase)
}
clones := check repo.SyncAll(ctx, repos, ".")
phase = "checking out appropriate branches"
check clones.EachTry(func(l repo.Local) error {
return l.CheckoutFirst(ctx, flags.branches.topic, flags.branches.default_)
@szabba
szabba / clean_code.md
Created Mar 2, 2017 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin
View clean_code.md

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

View dynamic_workers.go
package main
import (
"log"
"golang.org/x/sync/errgroup"
)
func main() {
var g errgroup.Group
View launch_manuskript
#!/usr/bin/env bash
cd /opt/manuskript
python bin/manuskript
@szabba
szabba / main.rs
Created Jan 1, 2017
Quantum Mechanics 101
View main.rs
extern crate num;
extern crate ndarray;
use num::{Zero, Complex};
use ndarray::prelude::*;
use ndarray::linalg::*;
fn main() {
let i = c64(0., 1.);
View Main.elm
module Main exposing (..)
import Html exposing (..)
import Html.Attributes exposing (..)
import Platform.Sub as Sub
import Html.Events exposing (..)
import Dict exposing (..)
import Debug as D exposing (..)
type Msg
View README.md
View TypeSafeEval.elm
import Html
-- EQUIVALENCE OF TYPES
type Equiv a b = Equiv (a -> b) (b -> a)
refl : Equiv a a
refl =
Equiv identity identity
@szabba
szabba / .gitignore
Last active Sep 5, 2016
Elm BDD API sketch
You can’t perform that action at this time.