Skip to content

Instantly share code, notes, and snippets.

View sumimakito's full-sized avatar

Makito sumimakito

View GitHub Profile
{
"status": "success",
"response": [
{ "word": "クチャーズ" },
{ "word": "av" },
{ "word": "ero" },
{ "word": "eroika" },
{ "word": "erolink" },
{ "word": "H" },
{ "word": "nude" },
POS = {
"n": { #1. 名词 (1个一类,7个二类,5个三类)
"n":"名词",
"nr":"人名",
"nr1":"汉语姓氏",
"nr2":"汉语名字",
"nrj":"日语人名",
"nrf":"音译人名",
"ns":"地名",
"nsf":"音译地名",
@sumimakito
sumimakito / res_shift.sh
Created February 18, 2016 07:38
Find and copy other dpi resources located in local Android icons library.
#!/bin/sh
cd ./drawable-xxxhdpi
flist="`ls | xargs echo`"
cd ..
target=`pwd`
cd /Users/makito/android-icons
cd drawable-xxhdpi
cp -rfv ${flist} "${target}/drawable-xxhdpi" | xargs -n 1
cd ../drawable-xhdpi
cp -rfv ${flist} "${target}/drawable-xhdpi" | xargs -n 1
//
// GPUImageHighlightShadowTintFilter.m
//
// Created by github.com/r3mus on 8/14/15.
//
//
#import "GPUImageHighlightShadowTintFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@sumimakito
sumimakito / pn.sh
Last active September 20, 2017 07:03
A bloody simple script for lazy cats.
#!/bin/bash
#
# Written by Makito <master@keep.moe>
#
# A bloody simple script for lazy cats.
# I'm too lazy to give it a name more than two words.
# Just regard it as the abbreviation of ping, please.
#
# You : Can I ping a URL?
# Ping: NO WAY! Cannot resolve *****: Unknown host!!
@sumimakito
sumimakito / loop.sh
Created October 30, 2017 07:40
loop.sh [--expected EXIT_CODE] COMMANDS...
expected=0
command=$@
re='^[0-9]+$'
if [[ $1 == '--expected' ]] ; then
if ! [[ $2 =~ $re ]] ; then
echo "Error: expected exit code '$2' is invalid."
exit 1
else
expected=$2
command=${@:3}
@sumimakito
sumimakito / Better_NSLog.m
Last active December 17, 2017 09:19
Gracefully output Arrays/Dictionaries that contain Unicode encoded strings. (may not work very well)
//
// Better_NSLog.m
//
// Created by Makito on 2017/12/17.
// Copyright © 2017年 Makito. All rights reserved.
//
#import <Foundation/Foundation.h>
#define INDENT @" "
@sumimakito
sumimakito / p1ngj1a0.js
Last active December 21, 2017 04:06
解决一些评教难题。
(function () {
var i;
var j;
var groupA = [];
var groupB = [];
var groupC = [];
var scoreTable = [];
// input a mess to get a Pure Array
function copyArray(src) {
#!/usr/bin/env python2
# lrdcq
# usage python2 unwxapkg.py filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0