Skip to content

Instantly share code, notes, and snippets.

@t-kashima
t-kashima / AES.cs
Created June 5, 2013 14:42
UnityとPHPでデータを暗号化して通信をする
using System;
using System.IO;
using System.Security.Cryptography;
public static class AES {
private static string KEY = "********************************";
private static string IV = "********************************";
public static string encrypt(string clearText) {
return EncryptRJ256(KEY, IV, clearText);
#!/bin/sh
USER_NAME="test"
GIT_REPOGITORY="/var/www"
RELEASE1_URL="*"
RELEASE2_URL="*"
RELEASE3_URL="*"
RELEASE4_URL="*"
RELEASE_MANAGE_URL="*"
console.log 'backgroud.js is working!!!!!!'
chrome.pushMessaging.onMessage.addListener (message) ->
alert 'GCM message: ' + message.payload
@t-kashima
t-kashima / Gruntfile.coffee
Created May 28, 2013 16:15
Grunt default settings
path = require 'path'
module.exports = (grunt) ->
grunt.initConfig
livereload:
port: 35729
coffee:
compile:
files:
@t-kashima
t-kashima / index.html
Created May 26, 2013 16:03
Chrome is Listening to your voice.
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>web speech api</title>
</head>
<body>
<input type="button" value="talk" id="speech_button">
<script type="text/javascript" src="./speech.js"></script>
</body>
@t-kashima
t-kashima / dotemacs
Last active December 17, 2015 15:08
;; 文字コード
(set-language-environment "Japanese")
(set-default-coding-systems 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-buffer-file-coding-system 'utf-8)
(set-locale-environment nil)
(setq-default tab-width 4 indent-tabs-mode nil)
(setq default-major-mode 'text-mode)
(setq mac-pass-control-to-system nil)
set-option default-shell /bin/zsh
set-option -g prefix C-t
unbind-key C-b
bind-key C-t send-prefix
# ウィンドウ・ペインの最初の番号を指定を1に。デフォルトだと0から
set -g base-index 1
set -g pane-base-index 1
set-option -g prefix C-t
setw -g utf8 on
set -g status-utf8 on
set -g status-interval 10
set -g status-bg colour100
setw -g window-status-current-fg black
setw -g window-status-current-bg white
bind C-r source-file ~/.tmux.conf
//
// ListViewController.h
// opus
//
// Created by Kashima Takumi on 2013/03/28.
// Copyright (c) 2013年 UNUUU FOUNDATION. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AssetsLibrary/AssetsLibrary.h>
//
// ViewController.h
// Bluetooth
//
#import <UIKit/UIKit.h>
#import <CoreBluetooth/CoreBluetooth.h>
@interface ViewController : UIViewController <CBCentralManagerDelegate, CBPeripheralManagerDelegate, CBPeripheralDelegate>
@property (weak, nonatomic) IBOutlet UITextView *textView;