Skip to content

Instantly share code, notes, and snippets.

View unreadable's full-sized avatar
🕊️

unreadable

🕊️
View GitHub Profile
@unreadable
unreadable / docker-compose.yml
Last active February 8, 2021 19:10
Docker compose file for node and mongo
# change mongo url to mongodb://mongo:27017
version: "3"
services:
app:
container_name: express-api
restart: always
build: .
ports:
- '3000:3000'
@unreadable
unreadable / Dockerfile
Created February 8, 2021 19:06
Simple Node docker config file
FROM node:14-slim
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
@unreadable
unreadable / Start.md
Last active December 21, 2018 10:31
Postgraphile getting started

Start pg server

sudo brew services start postgresql

Make postgres as default user

export PGUSER=postgres

Create pg database

@unreadable
unreadable / resume.md
Last active March 18, 2018 18:28
Resume

Iona​scu Alexandru

Email: ​bldcuber@gmail.com
Phone: +

Objective

I am looking for a challenging NodeJS/Front-end developer position.

@unreadable
unreadable / Perm.js
Created March 16, 2018 16:23
Permutation algorithm in javascript
function swap(str, i, j) {
let temp = str[i]
str = str.split("");
str[i] = str[j];
str[j] = temp;
return str.join("");
}
import wave, struct
import numpy as np
from tkinter import *
from tkinter.filedialog import askopenfilename
import pygame
# =========================== INIT STUFFS ========================================
root = Tk()
#include <iostream>
typedef unsigned int uint;
template <typename T>
class Matrix {
private:
T **mat, row, col;
public:
Matrix() : mat(nullptr), row(0), col(0) {}
@unreadable
unreadable / hm.m
Created October 23, 2017 20:59
Matlab hm
1)
len = size(M)(1)
M(1) + M(len) + M(len*len - (len + 1)) + M(len*len)
2)
sum(sum(M))
3)
function (m,n)
eye(m,n)
#ifndef VEC_CPP
#define VEC_CPP
#include "util.h"
#include "vec.cpp"
String::String() : s(nullptr) {};
String::String(const char *str) {
int l = len(str);
require "magickwand-crystal"
require "stumpy_png"
include StumpyPNG
ak = StumpyPNG.read("ak.png")
stick = StumpyPNG.read("out.png")
ibp = StumpyPNG.read("out.png")
dist_x = 252