Skip to content

Instantly share code, notes, and snippets.

A title

A very very very very very very very very very very very very very very very very very very very very very very very very A very very very very very very very very very very very very very very very very very very very very very very very very

a line
in two lines another line

@padawin
padawin / README.md
Last active January 22, 2024 20:44
Stackoverflow #55496873
#include <string.h>
#include <stdio.h>
// To solve https://www.instagram.com/p/Bt5v_YrlDhz/
const char* alphabet[26] = {
"2.-",
"4-...",
"4-.-.",
"3-..",
@padawin
padawin / Dockerfile
Created March 28, 2018 14:30
Docker python example
FROM python:3.6-stretch
WORKDIR /app
COPY requirements.txt main-flask.py main-tornado.py script.py /app/
RUN pip3 install -r requirements.txt
# CMD python3 main-tornado.py
# CMD FLASK_APP=main-flask.py flask run
@padawin
padawin / Makefile
Last active January 19, 2018 21:27
C++ - Lua
.PHONY: ex1 ex2 ex3
INC=
LIB=
LINK=-llua -ldl
all: ex1 ex2 ex3
ex1:

failing mock with function imported

@padawin
padawin / main.c
Created November 9, 2017 15:30
bidirectional graph structure
#include<stdio.h>
#include<inttypes.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define SIZE 4
/*
* Gets Row from min(), (diff of x and y) +
@padawin
padawin / Dockerfile56
Last active November 7, 2017 11:00
segfault-redis-php
FROM php:5.6-cli
RUN apt-get update && \
apt-get install -y libzip-dev git git-core
COPY composer.json /var/www/project/
COPY php.ini /usr/local/etc/php/php.ini
RUN cd /var/www/project/ && \
pecl install redis && \

Usage

cat fixtures | python3 floodfill.py
@padawin
padawin / README.md
Last active January 30, 2020 22:58
rebase-exercises

Rebase

Why?

  • to have a branch based on a new parent/more up to date parent,
  • to alter past commits in a branch

Notation

git rebase