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 | |
tanggal="$1" | |
tanggal="${tanggal:-$(date +'%Y-%m-%d')}" | |
hijri=$(python3 - <<CMD | |
from ummalqura.hijri_date import HijriDate | |
from datetime import date | |
print(HijriDate.get_hijri_date("$tanggal")) | |
CMD |
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
#!/bin/bash | |
# teroos - Runs a script for..ever... until stopped | |
set -eo pipefail | |
USAGE() { | |
echo "Usage: $0 <start|stop|status|install|uninstall> /path/to/script.sh" | |
exit | |
} |
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
float angle; | |
float w = 24; | |
float maxD; | |
int num = 16; | |
void setup() { | |
size(400, 400, P3D); | |
smooth(8); | |
maxD = dist(0, 0, num*w, num*w); | |
} |
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
class Cell { | |
float x; | |
float y; | |
float size; | |
int state; | |
public Cell(float x, float y, float size) { | |
this.x = x; | |
this.y = y; | |
this.size = size; |