View helloWorld.Modusfile
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
hello_world_image(profile) :- | |
( | |
profile = "debug", | |
from("ubuntu") | |
; | |
profile = "release", | |
from("alpine") | |
)::set_cmd(["echo", "Hello", "World"]). |
View code_size.sh
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 bash | |
# Use this script like `./code_size.sh file1 file2 ... > output.txt` | |
set -eu; | |
function estimate() | |
{ | |
cat $1 | wc |
View iphroPlacement.py
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 numpy as np | |
import os | |
import math | |
import random | |
import overpy | |
from scipy.spatial import KDTree | |
def simulatedAnnealing(data, maxIter=1000000): | |
# NOTE: this function/approach wasn't effective enough at finding the optimal value |
View automateTesting.sh
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 bash | |
set -euo pipefail | |
cd ~/Documents/Code/Work/lner-app/iosApp | |
function testPhone() { | |
# Expects two arguments: | |
name=$1 | |
version=$2 | |
View config.el
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
;;; .doom.d/config.el -*- lexical-binding: t; -*- | |
;; Place your private configuration here: | |
;; Color theme changer depending on time | |
(setq hour | |
(string-to-number | |
(substring (current-time-string) 11 13))) ;; gets the hour | |
(if (member hour (number-sequence 6 16)) ;; light theme if between 06:00-16:59 | |
(setq now 'doom-solarized-light) |
View searchTube.py
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 python2 | |
# ^ also compatible with python3 ^ | |
# This script executes a search request for the specified search term and prints the results. | |
# Sample usage: | |
# python searchTube.py --max-results=10 "megadeth album" | |
# uses the google api client module for python so make sure you install it | |
import argparse | |
from googleapiclient.discovery import build |