- jq
- aws cli
Show Auto Scaling policies
' | |
' Dump COM Type Library Information | |
' | |
' Usage: | |
' cscript dumpTypelib.vbs /target:(target exe/dll/ocx name) | |
' | |
' Example: | |
' cscript //nologo dumpTypelib.vbs /target:c:\Windows\SysWOW64\TLBINF32.dll | |
' | |
target = WScript.Arguments.Named("target") |
# for git | |
# | |
# http://henrik.nyh.se/2008/12/git-dirty-prompt | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" |
<html> | |
<head> | |
<title>Canvas tutorial</title> | |
<script type="text/javascript"> | |
var ctx = null; | |
function draw(){ | |
var canvas = document.getElementById('tutorial'); | |
if (canvas.getContext){ | |
ctx = canvas.getContext('2d'); |
var BASE_FOLDER_ID = PropertiesService.getScriptProperties().getProperty('FOLDER_ID'); | |
var NEW_OWNER = PropertiesService.getScriptProperties().getProperty('NEW_OWNER'); | |
var me = Session.getActiveUser().getEmail(); | |
var hasError = false; | |
function main() { | |
var folder = DriveApp.getFolderById(BASE_FOLDER_ID); | |
chownWithFolder(folder); | |
if (hasError) { | |
throw new Error('実行中にエラーが発生'); |
/* | |
色を変更(一定時間かけてだんだん色が変わる) | |
*/ | |
function fade(elem, from, to) { | |
// 変更前の元の色と変更後の情報 | |
var fromColor = new Color(from); | |
var destColor = new Color(to); | |
// fromの色をまずセットする | |
elem.style.backgroundColor = from; |
require 'net/http' | |
require 'rubygems' | |
require 'nokogiri' | |
KCODE = 'UTF-8' | |
# アラートを通知してくれるコメントサーバーの情報を取得 | |
response = Net::HTTP.get(URI('http://live.nicovideo.jp/api/getalertinfo')) | |
xml = Nokogiri(response) | |
address = (xml/'addr').inner_text() |
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# 指数関数と対数関数" | |
] | |
}, | |
{ |
#include <llvm/LLVMContext.h> | |
#include <llvm/Module.h> | |
#include <llvm/BasicBlock.h> | |
#include <llvm/CallingConv.h> | |
#include <llvm/Constants.h> | |
#include <llvm/Function.h> | |
#include <llvm/GlobalVariable.h> | |
#include <llvm/Instructions.h> | |
#include <llvm/PassManager.h> | |
#include <llvm/Analysis/Verifier.h> |
"================ | |
" NeoBundle | |
"================ | |
set nocompatible | |
filetype off | |
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim | |
endif |