Skip to content

Instantly share code, notes, and snippets.

View TakesxiSximada's full-sized avatar
🐻

TakesxiSximada TakesxiSximada

🐻
View GitHub Profile
@TakesxiSximada
TakesxiSximada / .dir-locals.el
Last active July 31, 2020 11:07
WebGL チュートリアル
((nil
(require-final-newline . t)
(indent-tabs-mode)
(eval . (add-hook 'before-save-hook 'delete-trailing-whitespace nil t))
))
;; (setq vue-html-tab-width 2)
;; (setq vue-html-tab-width 2)
;; (setq js-indent-level 2)
;; (setq css-indent-offset 2)
@TakesxiSximada
TakesxiSximada / README.org
Last active September 24, 2020 23:50
org-file-table.el

org-file-table

@TakesxiSximada
TakesxiSximada / gist:8cf621d18404ea75a081
Last active August 29, 2015 14:18
Bluemix のVisual Recognitionでラベルを取得
# -*- coding: utf-8 -*-
import requests
recog_data = {
"visual_recognition": [
{
"name": "Visual Recognition-1o",
"label": "visual_recognition",
"plan": "free",
"credentials": {
"url": "https://gateway.watsonplatform.net/visual-recognition-beta/api",
@TakesxiSximada
TakesxiSximada / gist:996dbbfae5fa3bbab61d
Last active August 29, 2015 14:18
IBM Watson Developer Cloud Visual Recognition で物体認識させる
# -*- coding: utf-8 -*-
import os
import sys
import json
import argparse
import itertools
import requests
from pit import Pit
@TakesxiSximada
TakesxiSximada / gist:ca59974659dbc5c284e2
Last active August 29, 2015 14:18
WATSONの画像認識の結果を1画像ずつのjsonファイルに出力するscript
# -*- coding: utf-8 -*-
import os
import sys
import json
import argparse
import itertools
import requests
from pit import Pit
@TakesxiSximada
TakesxiSximada / gist:ca1b5aac871ec7167ff9
Created April 12, 2015 13:58
画像をスライドさせ分割
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import argparse
import numpy as np
import matplotlib as plt
from PIL import (
Image,
@TakesxiSximada
TakesxiSximada / .gitignore
Last active March 6, 2021 01:04
switch-project.el
*.elc
@TakesxiSximada
TakesxiSximada / gist:1d267b9a582be30e8eca
Created May 16, 2015 16:01
大谷のデータ取得
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""大谷のデータ取得
"""
import sys
import argparse
import requests
def main(argv=sys.argv[1:]):
@TakesxiSximada
TakesxiSximada / gist:6187c39d7e086cb836e9
Created May 17, 2015 03:01
4/25 西武vsソフトバンク
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""4/25 西武/ソフトバンク
"""
import sys
import argparse
import requests
def main(argv=sys.argv[1:]):
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import json
import requests
url = 'INCOMING WEB HOOK URL'
data = {
'channel': '#channel',
'icon_emoji': ':baby_chick:',
'username': u'username',