Skip to content

Instantly share code, notes, and snippets.

@cyio
cyio / 0_reuse_code.js
Created August 22, 2014 01:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

I recently switched from using the Evernote Desktop Client to the web client. The only thing I missed was the short-cut for creating Todo checkboxes.

Here is a quick TamperMonkey (Grease Monkey) script to add that functionality back in. Add the userscript to Tampermonkey.

@cyio
cyio / index.html
Last active November 22, 2015 12:46 — forked from anonymous/index.html
用SVG绘制一个矩形 JS Bin// source http://jsbin.com/hekesa
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<canvas id="graphic">
description
</canvas>
@cyio
cyio / index.html
Last active November 22, 2015 13:21 — forked from anonymous/index.html
SVG:绘制运动的球 // source http://jsbin.com/hekesa
<canvas id="graphic" width="600" height="400">
Description of the graphic
</canvas>
<script id="jsbin-javascript">
var canvas=document.querySelector('#graphic');
var ctx=canvas.getContext('2d');
var pos={x:0,y:100};
var speed={x:2.5,y:1.6}
function draw(){
@cyio
cyio / twicli.css
Created January 16, 2016 07:12 — forked from monsier-oui/twicli.css
twicli CSS
@charset "UTF-8";
/* アイコンフォント読み込み */
@import url('//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css');
/**
* 全体
*/
* {
outline: none;
@cyio
cyio / twicli_elsewhither.css
Last active January 18, 2016 11:07 — forked from tkawa/twicli_elsewhither.css
twicli用CSS Elsewhitherをベースに、Old Twitterになんとなく似せる感じ
@charset "utf-8";
/* ----- twicli.css ----- */
/*
twicli用CSS Elsewhither(http://else.jimdo.com/others/storage/)をベースに、
Old Twitterになんとなく似せる感じ
*/
@import url('//cdn.bootcss.com/font-awesome/4.4.0/css/font-awesome.min.css');
* {
#!/bin/bash
###################################
# Usage: sudo ./installer.sh [os] #
###################################
OS=$1;
UBUNTU="";
#############
@cyio
cyio / chrome_extension_get_cookie.js
Created July 11, 2016 16:52 — forked from neekey/chrome_extension_get_cookie.js
Chrome 插件获取指定域下的Cookie,代码示例
@cyio
cyio / signapk.sh
Created July 25, 2016 02:47 — forked from TommyLau/signapk.sh
Android sign apk
#!/bin/bash
# Sample usage is as follows;
# ./signapk myapp.apk debug.keystore android androiddebugkey
#
# param1, APK file: Calculator_debug.apk
# param2, keystore location: ~/.android/debug.keystore
# param3, key storepass: android
# param4, key alias: androiddebugkey
USER_HOME=$(eval echo ~${SUDO_USER})
@cyio
cyio / workstation
Created August 15, 2016 13:54 — forked from moesy/._wild-cherry.zsh-theme
Provision scripts for workstations
# Ubuntu
# OSX