Skip to content

Instantly share code, notes, and snippets.

View fasiha's full-sized avatar
💭
🐦‍🔥

Ahmed Fasih fasiha

💭
🐦‍🔥
View GitHub Profile
for f in $@; do
d=`exiftool -dateFormat "%Y-%m-%d %H.%M.%S" -CreateDate "$f" | tail -n1 | cut -d: -f2- | sed 's/^ //'`;
b=$(basename "$f");
final="$d-$b";
echo $final;
mv "$f" "$final"
done
@fasiha
fasiha / example.md
Created May 19, 2020 12:52
Curtiz NLP Annotation
  • @ もっとかっこう使つかったほうがいいよ
    • Particles
    • Conjugated phrases
      • 使った | 使つかう + た
    • Vocab
      • もっと | 「もっと」| ① (some) more/even more/longer/further
  • 格好 | 格好・恰好「かっこう・かっこ・カッコ」| ① shape/form/figure/posture/pose ② appearance ③ state/situation ④ suitable/fit/reasonable ⑤ about
@fasiha
fasiha / onyomi-frequency.txt
Created May 7, 2020 20:39
Frequencies of Japanese onyomi (on'yomi 音読み) in KANJIDIC2 (https://www.edrdg.org/wiki/index.php/KANJIDIC_Project). Generated via `grep ja_on kanjidic2.xml | grep '<reading' | sed 's:<[^>]*>::g' | sort | uniq -c| sort -r`: the higher an onyomi appears on this list, the more kanji it's associated with. Potentially helpful e.g., when creating mnemo…
652 コウ
515 ショウ
375 ソウ
373 キョウ
371 トウ
364 シ
353 カン
343 セン
331 キ
311 ケン
@fasiha
fasiha / cream-rgto-jazee-minor.md
Created April 25, 2020 23:11
Gloss from JAZEE MINOR's rap in Cream's cover of RGTO https://www.youtube.com/watch?v=3uAxSNbOnqw

JAZEE MINOR: https://www.youtube.com/watch?v=3uAxSNbOnqw

  • @ しゅういちにちサロレベルガンマせん
    • Vocab
      • 週一日 | 週一日「しゅういちにち」| ① one day a week
        • 週 | 週「しゅう」| ① week
        • 一日 | 一日・1日「いちにち・いちじつ・ひとひ・ひとえ」| ① one day ② first day of the month (👉 ついたち,1)
          • 一 | 一・1・壱・弌・壹「いち」| ① one (👉 ワン,1) ② best ③ first/foremost ④ beginning/start ⑤ ace (playing card) (👉 エース) ⑥ bottom string (on a shamisen, etc.)
  • 日 | 日「にち」| ① Sunday (👉 日曜) (✋abbreviation) ② day (of the month) ③ counter for days ④ Japan (👉 日本) (✋abbreviation)
@fasiha
fasiha / A---worstDays.txt
Last active March 13, 2020 00:59
Worst one-day market losses, accompanied by the trailing 15-day percent change
date last open win15 one15
1987-10-19 224.839996 282.700012 -12.530940 -20.466931
1929-10-28 22.740000 22.740000 -14.191852 -12.940279
1929-10-29 20.430000 20.430000 -25.049440 -10.158311
1935-04-16 8.220000 8.220000 9.341317 -9.967141
1929-11-06 20.610001 20.610001 -25.106384 -9.921320
1946-09-03 15.000000 15.000000 -7.909292 -9.909910
2020-03-12 2480.639893 2630.860107 -18.731308 -9.511268
1937-10-18 10.760000 10.760000 -10.303030 -9.121622
1931-10-05 8.820000 8.820000 -19.834711 -9.072165
@fasiha
fasiha / options.sql
Created March 11, 2020 00:37
SQL/SQLite question: grouping one column so each unique value become its own column
drop table if exists stock;
drop table if exists options;
create table stock(quotedate DATE, price DOUBLE);
create table options(
quotedate DATE,
price DOUBLE,
type STRING,
expiration DATE,

大した

  • おう 大したことねえよ!
    • Your Lie in April, ep. 8
  • 大したことじゃないんだけど
    • Just Because!, ep. 11
  • 大したことじゃないのに
    • Kawai Manor, ep. 3

人工

  • 人工衛星まで落ち始めた!
@fasiha
fasiha / RGTO.md
Created February 12, 2020 05:15
Gloss for Aklo, "RGTO" feat. Salu and K-Dub Shine: https://www.youtube.com/watch?v=TnJMBcQFNME (definitions via JMDict)

[AKLO]

Everyday I Wake Up

やることめいかく

  • Vocab
    • 遣る・行る「やる」:① to do/to undertake/to perform/to play (a game)/to study
    • 事・縡「こと・こん」:① thing/matter
    • 明確「めいかく」:① clear/precise/definite/distinct
@fasiha
fasiha / demo_gb1_pymc.py
Created February 4, 2020 00:56
Attempting to create a Gb1Binomial distribution in PyMC
import numpy as np
import theano.tensor as tt
import pymc3 as pm
from scipy.stats import beta, binom
def genGb1Binom(Ndata):
a = 3.3
b = 4.4
d = .333
@fasiha
fasiha / betabin.ipynb
Last active February 2, 2020 00:00
Code related to Stats Stack Exchange question https://stats.stackexchange.com/q/447367/31187
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.