Skip to content

Instantly share code, notes, and snippets.

Shinichiro Aska s-aska

Block or report user

Report or block s-aska

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View localizer.js
// before html
// <html lang="ja">
// <span data-text-ja="タイムライン">Timeline</span>
//
// var localizer = new Localizer();
// localizer.localize();
//
// after html
// <span data-text-ja="タイムライン">タイムライン</span>
@s-aska
s-aska / Keychain.swift
Last active Jun 11, 2019
Swift Keychain class ( supported Xcode 6.0.1 )
View Keychain.swift
import UIKit
import Security
class Keychain {
class func save(key: String, data: NSData) -> Bool {
let query = [
kSecClass as String : kSecClassGenericPassword as String,
kSecAttrAccount as String : key,
kSecValueData as String : data ]
@s-aska
s-aska / MainActivity.java
Last active Apr 30, 2019
Sortable ListView on Drag and Drop
View MainActivity.java
package com.example.sortable.app;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
@s-aska
s-aska / fuck-the-azure-proxy.go
Created Oct 11, 2017
azure-functions-cli(nodejs) で text/html がエラーになるので proxy 書いた
View fuck-the-azure-proxy.go
package main
import (
"io"
"net/http"
"strings"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
@s-aska
s-aska / thumbnail.go
Created Oct 4, 2017
サムネイル生成くん
View thumbnail.go
package main
import (
"fmt"
"image"
"image/jpeg"
"io/ioutil"
"os"
"path"
"path/filepath"
@s-aska
s-aska / capture.go
Created Sep 5, 2017
request capture
View capture.go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
View redirect-https.html
<script type="text/javascript">
if (location.protocol != 'https:') {
location.href = 'https:' + location.href.substring(location.protocol.length);
}
</script>
View 調味料
醤油
料理酒
みりん
味覇
味噌
おろし生姜チューブ
おろしにんにくチューブ
塩胡椒
砂糖
片栗粉
View dump.psgi
plackup -MData::Dumper -e 'sub { [200, [], [Dumper(\@_)]] }'
View gourmet.txt
🍲: やま中(もつ鍋)
http://tabelog.com/fukuoka/A4001/A400104/40004383/
🍲: 水たき 長野
http://tabelog.com/fukuoka/A4001/A400102/40000010/
🐡: 天ぷら ひらお
http://tabelog.com/fukuoka/A4001/A400107/40000033/
🐡: 割烹よし田(鯛茶漬け)
http://tabelog.com/fukuoka/A4001/A400103/40000692/
🐔: ????????(ちんぷんかんぷん)
https://retty.me/area/PRE40/ARE135/SUB13502/100000784924/
You can’t perform that action at this time.