Skip to content

Instantly share code, notes, and snippets.

View shopetan's full-sized avatar
👀
watching u

Shopetan shopetan

👀
watching u
View GitHub Profile
@shopetan
shopetan / makky.rb
Last active December 23, 2017 07:48
make.io
require './lexer'
$nodeno = 0
def checktoken(f, expected)
if $token == expected
$token = $lexer.lex(){|l|
$lexime=l
}
else
class Parser
@lexime = "";
def initialize(l)
@lexer = l
end
def parse
@lexer.lex{|t, l|
@lexime = l
@shopetan
shopetan / modificationCSV.py
Created October 5, 2015 17:40
融通の効かないcsv君へ贈る
import csv
f1 = open("Q_DB_TEST.csv", "r")
f2 = open("write_test.csv","w")
reader = csv.reader(f1)
writer = csv.writer(f2, lineterminator='\n')
for row in reader:
writer.writerow(row)
@shopetan
shopetan / mahalanobis.py
Created October 1, 2015 08:35
マハラノビス距離
# -*- coding: utf-8 -*-
import numpy as np
import scipy as sc
from scipy import linalg
from scipy import spatial
import scipy.spatial.distance
import pandas as pd
import matplotlib.pyplot as plt
import pylab
import matplotlib.font_manager
@shopetan
shopetan / AndroidとiOSのアプリサンドボックス
Last active October 20, 2015 09:37
セキュキャン2015講義メモまとめ
守る技術
モバイル端末の様々なセキュリティ機構がどのような仕組みなのか知ってほしい
日本の端末独自の取り組み
今後のモバイルセキュリティの向上のための提案をできたらいいね
攻める技術
jailbreakやアプリの脆弱性がどのようなものか知ってほしい
ブラックボックスとなっている危機のセキュリティ機構をry
Jailbreakとは
@shopetan
shopetan / SampleGoogleMapAPI.html
Last active August 29, 2015 14:24
SampleGoogleMapAPI.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name=”viewport” content=”initial-scale=1.0, user-scalable=yes” />
<meta name="robots" content="noindex,nofollow,noarchive" />
<title>Sample</title>
<link rel="stylesheet" type="text/css" href="honoka/css/bootstrap.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
@shopetan
shopetan / GoogleMapAPI.js
Created July 3, 2015 14:00
Use Google Map API
$(document).ready(function startFunc(){
getLocation();
})
function getLocation(){
var message = "get your potition";
document.getElementById("area_name").innerHTML = message;
if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(successCallback,errorCallback);
} else {