Skip to content

Instantly share code, notes, and snippets.

View altilunium's full-sized avatar

Altilunium altilunium

  • Altilunium
  • Indonesia
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// ==UserScript==
// @name Better osm.org
// @name:ru Better osm.org
// @version 0.8
// @changelog v0.8: https://osm.org/user/TrickyFoxy/diary/406061
// @changelog v0.8: Images from Panoramax, StreetComplete, Wikipedia Commons in changeset and notes
// @changelog v0.8: GPX-tracks render (also in StreetComplete notes)
// @changelog v0.8: Show first comment in changesets history, user badge for your friends
// @changelog v0.8: T — toggle between compact and full tags diff mode, U — open user profile from changeset, note, ...
// @changelog v0.8: Hotkeys on user profile Page (H — user changesets, T — tracks, D — Diary, C — comments, N — notes)
#include <stdio.h>
#include <stdlib.h>
FILE *fp;
FILE *fprep;
FILE *file;
char c;
int z;
char token[256];
int line;
import java.util.Scanner ;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.io.FileNotFoundException;
program DFA;
{Program implementasi DFA pada Marble Rolling Toy
}
//KAMUS
var
info:Text;
temp,temp2,input_string,current_state: string;
i,n,j,k,st,sy:integer;
n_states: integer;
void song(int buzzerPin){
tone(buzzerPin, 988);
delay(158);
noTone(buzzerPin);
tone(buzzerPin, 988);
delay(79);
noTone(buzzerPin);
@altilunium
altilunium / pytimer.py
Last active October 2, 2024 14:42
Python timer, with Windows Notification
# pip install win10toast
import time
from win10toast import ToastNotifier
# Function to show Windows notification
def show_notification(title, message):
toaster = ToastNotifier()
toaster.show_toast(title, message, duration=10) # duration is in seconds
// 8B75 0C mov esi,dword ptr ss:[ebp+C]
// AD lodsd
// 35 FF5F0310 xor eax,10035FFF
// 50 push eax
// E8 6FFEFFFF call 00B85C24
// 85C0 test eax,eax
// 0F84 23010000 je 00B85EE0
// 8B7D 08 mov edi,dword ptr ss:[ebp+8]
// 83C7 04 add edi,4