Skip to content

Instantly share code, notes, and snippets.

Avatar

F@L falms

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am falms on github.
  • I am falms (https://keybase.io/falms) on keybase.
  • I have a public key ASB2IA3KkFc_Mj2vKxp6EJJ7GhOo7Xr2zJYvIiBJNA9kBAo

To claim this, I am signing this object:

@falms
falms / sync.py
Created Dec 17, 2016
Sync Chinachu to nasne
View sync.py
import requests
import json
import re
import base64
def base36encode(number):
alphabet, base36 = ['0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', '']
while number:
number, i = divmod(number, 36)
base36 = alphabet[i] + base36
@falms
falms / webarchive2mhtml.bat
Created Dec 14, 2011
webarchive to mhtml converter
View webarchive2mhtml.bat
@echo off
setlocal
set SCRIPTDIR=%~dp0
:exec
if "%~1"=="" goto end
echo "%~1"
php "%SCRIPTDIR%webarchive2mhtml.php" "%~1"
shift
goto exec
@falms
falms / algorithm.php
Created Sep 14, 2011
(5) 一人ゲーム
View algorithm.php
<?php
$num_tests = i();
for($ti=0; $ti<$num_tests; $ti++){
$num_elems = i();
$ques = array();
$ques[] = array("count" => 0, "elems" => explode(" ",i()));
while($que = array_shift($ques)){
@falms
falms / gas.js
Created Sep 14, 2011
(4) Google Apps Script
View gas.js
function myFunction() {
var d = [
{
"city_name": "Oykot",
"data": [
{
"capacity": 1000,
"usage": 750,
},
{
View android.java
import java.security.MessageDigest;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
class android{
private static final char[] keys = { '2', '4', '3', '5', '7', '0', 'B', 'E', 'D', '1', 'C', '6', '9', '8', 'F', 'A' };
private static String getPass(String mailaddr, String passcode){
mailaddr = mailaddr.trim();
passcode = passcode.trim();
String result="";
View go.go
package main
import (
"fmt"
"io"
"strings"
/* add more */
"image"
"image/png"
)
View webgame.js
var m = eval(document.head.innerHTML.match(/\[.*\]/)+";");
for(i=0;i<m.length;i++){
if(m[i]==null){continue;}
document.getElementById('card'+i).click();
for(j=i+1;j<m.length;j++){
if(m[i]==m[j]){
document.getElementById('card'+j).click();
m[j]=null;
}
}