This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
from googleapiclient.discovery import build | |
from httplib2 import Http | |
from oauth2client import file, client, tools | |
from googleapiclient.http import MediaFileUpload | |
# If modifying these scopes, delete the file token.json. | |
SCOPES = 'https://www.googleapis.com/auth/drive.file' | |
drive_service = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"{{{ macかどうかの判定 | |
if has("unix") | |
let s:uname = system("uname -s") | |
if s:uname == "Darwin\n" | |
" Do Mac stuff here | |
let s:isMac = 1 | |
else | |
let s:isMac = 0 | |
endif | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
class ReplaceValue: | |
""" | |
Font入れ替えのデータクラス | |
タプルでやればいらないが、ひとまず作成 | |
""" | |
def __init__(self, from_name, from_guid, to_name, to_guid): | |
self.from_name = from_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>serialize_field</Title> | |
<Shortcut>sfield</Shortcut> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal> | |
<ID>type</ID> | |
<Default>int</Default> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" {{{ dein.vim | |
if &compatible | |
set nocompatible | |
endif | |
if version < 740 | |
finish | |
endif | |
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
project(hello) | |
include_directories("${PROJECT_SOURCE_DIR}") | |
message(----------------------) | |
message(${PROJECT_SOURCE_DIR}) | |
message(----------------------) | |
# file(GLOB subdirs | |
# "${CMAKE_SOURCE_DIR}/src" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.3) | |
find_package(PkgConfig) | |
pkg_check_modules(ALLEGRO5 REQUIRED allegro-5) | |
pkg_check_modules(ALLEGRO_MAIN REQUIRED allegro_main-5.0) | |
include_directories(${ALLEGRO5_INCLUDE_DIRS}) | |
include_directories(${ALLEGRO_MAIN_INCLUDE_DIRS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
public class CustomEditorWindow : EditorWindow | |
{ | |
class NodeData |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let VSHADER_SRC = `void main(){ | |
gl_Position = vec4(0.0, 0.0, 0.0, 1.0); | |
gl_PointSize = 10.0; | |
}`; | |
let FSHADER_SRC = `void main(){ | |
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); | |
}`; | |
function main(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 画像の編集ボタンを押すと自動で編集して、送信する | |
(function(){ | |
if(location.host.search("www.chatwork.com") == -1){ | |
// 他サイトなので処理しない | |
return | |
} | |
// TODO ON,OFF出来るようにする | |
setInterval(function(){ |
NewerOlder