This file contains hidden or 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
// ==UserScript== | |
// @name Ignore slack user | |
// @namespace https://github.com/uzimith/ | |
// @version 0.1 | |
// @description ignore slack user | |
// @author uzimith | |
// @match https://*.slack.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
// ==UserScript== | |
// @name Ignore slack user | |
// @namespace https://github.com/uzimith/ | |
// @version 0.1 | |
// @description ignore slack user | |
// @author uzimith | |
// @match https://*.slack.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
fn main() { | |
let mut vec = vec!("1", "1"); | |
let first = vec.pop(); | |
let second = vec.pop(); | |
match (first, second) { | |
(Some(a), Some(b)) if a == b => print!("yes"), | |
(Some(_), Some(_)) => print!("hi"), | |
_ => print!("no") | |
} | |
} |
This file contains hidden or 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
// JWKから公開鍵を作る | |
type JWK struct { | |
Keys []struct { | |
Kty string `json:"kty"` | |
Alg string `json:"alg"` | |
Use string `json:"use"` | |
Kid string `json:"kid"` | |
N string `json:"n"` | |
E string `json:"e"` |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# MySQL Workbench Python script | |
# connect tables with foreign keys | |
# table: plural (sites) | |
# foreign_key: singularize(table)_id (site_id) | |
# Written in MySQL Workbench 6.3.9 | |
import grt | |
import mforms | |
from wb import * |
This file contains hidden or 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
set noautofocus | |
let scrollstep=230 | |
set smoothscroll | |
let scrollduration= 200 | |
let barposition = "bottom" | |
let locale = "jp" | |
let hintcharacters = "hjklasdfgyuiopqertnmzxcvb" | |
let mapleader = "," | |
let blacklists = ["https://mail.google.com/*","*://mail.google.com/*","@https://mail.google.com/mail/*"] | |
let completionengines = ['google'] |
This file contains hidden or 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
//---------------------------------------- | |
// Arduino | |
//---------------------------------------- | |
// adb shell netstat起動を確認 | |
var socket = navigator.mozTCPSocket.open('127.0.0.1', 9943); | |
socket.onopen = function () { | |
var param = { | |
// adb shell dmesgでArduinoのdevicenameの確認 | |
devicename: 'ttyACM0', | |
bitrate: 9600 |
This file contains hidden or 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
/* | |
*/ | |
const int OUTPUTS = 2; | |
byte pin[OUTPUTS] = {13, 12}; | |
int current; | |
void setup() | |
{ | |
// initialize the serial communication: | |
Serial.begin(9600); | |
for (int i=0; i < OUTPUTS+1; ++i) pinMode(pin[i], OUTPUT); |
This file contains hidden or 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
//: Playground - noun: a place where people can play | |
import UIKit | |
var array = [1,2,3,4,5,6] | |
for i in 0..<10 { | |
if (array.isEmpty) { | |
array = [1,2,3,4,5,6] | |
} | |
var index = Int(arc4random() % UInt32(array.count)) |
This file contains hidden or 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
var gulp = require('gulp') | |
var watchify = require('watchify'); | |
var browserify = require('browserify'); | |
var gutil = require('gulp-util'); | |
var buffer = require('vinyl-buffer'); | |
var source = require('vinyl-source-stream'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var streamify = require('gulp-streamify'); | |
var uglify = require('gulp-uglify'); |