Skip to content

Instantly share code, notes, and snippets.

View widoyo's full-sized avatar

Widoyo widoyo

View GitHub Profile
@widoyo
widoyo / soma.yaml
Last active June 3, 2023 03:46
Family Tree of Soma Pawiro
'Somarejan':
- 'mBokde Gembong':
- Mitro + :
- Tuminah
- Wardi
- Sri
- Wi
- Hadi Saimin
- Kenthut
- Yatman
$def with (ctx)
$ kegiatan = ctx.get('kegiatan')
$ pos = ctx.get('pos')
$ petugas = ctx.get('petugas')
$ tg = ctx.get('tgl')
$code:
haris = [h.title() for h in "sen_sel_rab_kam_jum_sab_min".split('_')]
bulan = [b.title() for b in "jan_feb_mar_apr_mei_jun_jul_ags_sep_okt_nop_des".split('_')]
$var extra_header:
<style>
#define library and main variable
import MySQLdb
from urllib2 import urlopen
import urllib2
import requests
import time
import json
def push_notifikasi(wilayah,stasiun,tanggal,jam,ch,status,state):
tanggal_jam = str(tanggal) + " " + str(jam)
data = {
/**************************************************************
*
* primabot Davis Sensor Reader
*
* target prosesor: Atmega 328p
*
* Widoyo
* 20 Okt 2020
*
**************************************************************/