Skip to content

Instantly share code, notes, and snippets.

View szabba's full-sized avatar

Karol Marcjan szabba

  • Zielona Góra, Poland
View GitHub Profile
VERSION 0.6
binary:
FROM golang:1.19.0
WORKDIR /work
COPY go.mod go.sum ./src
RUN (cd ./src && go mod download)
COPY . ./src
COPY . ./original-src
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 "揮
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 March 2, 2017 20:37 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

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

package main
import (
"log"
"golang.org/x/sync/errgroup"
)
func main() {
var g errgroup.Group
#!/usr/bin/env bash
cd /opt/manuskript
python bin/manuskript
@szabba
szabba / main.rs
Created January 1, 2017 01:03
Quantum Mechanics 101
extern crate num;
extern crate ndarray;
use num::{Zero, Complex};
use ndarray::prelude::*;
use ndarray::linalg::*;
fn main() {
let i = c64(0., 1.);
@szabba
szabba / Main.elm
Last active December 16, 2016 11:38 — forked from helderjnpinto/filter messages
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
@szabba
szabba / README.md
Last active November 4, 2016 23:22
import Html
-- EQUIVALENCE OF TYPES
type Equiv a b = Equiv (a -> b) (b -> a)
refl : Equiv a a
refl =
Equiv identity identity