vimで使うキーの機能使用頻度と打ちやすさを整理してみました。 今回整理したのはnormalモードについてだけです。 機能の使用頻度と打ちやすさは、完全に個人の見解です。 キーボードによっても打ちやすさは変わると思います。
すべてのキーを網羅しているわけではありません。
/** | |
* Will release child objects | |
*/ | |
var mypage = function() { | |
var win = Ti.UI.createWindow(), | |
table = Ti.UI.createTableView(), | |
label = Ti.UI.createLabel(); | |
win.add(table); | |
win.add(label); |
var express = require('express'); | |
var util = require('util'); | |
var oauth = require('oauth'); | |
var app = express.createServer(); | |
var _twitterConsumerKey = "YOURTWITTERCONSUMERKEY"; | |
var _twitterConsumerSecret = "YOURTWITTERCONSUMERSECRET"; | |
function consumer() { |
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |
#!/bin/bash -eux | |
ARCH=${ARCH:-x86_64} | |
CORES=$(sysctl -n hw.ncpu) | |
GHC=${GHC:-7.4.2} | |
CABAL=${CABAL:-0.14.0} | |
PLATFORM=${PLATFORM:-2012.2.0.0} | |
[[ ! -d /usr/local/src ]] && mkdir -p /usr/local/src |
# vim:fileencoding=utf-8 | |
import codecs | |
import sys | |
import types | |
if __name__ == '__main__': | |
# | |
# ターミナルに出力する場合 | |
# 以下のサンプルは、ターミナルに出力する場合は | |
# うまくいくが、リダイレクトさせてファイルに出力すると |
[Default Applications] | |
application/arj=xarchiver.desktop; | |
application/deb=xarchiver.desktop; | |
application/java-archive=openjdk-6-java.desktop; | |
application/msexcel=libreoffice-calc.desktop; | |
application/mspowerpoint=libreoffice-impress.desktop; | |
application/msword=libreoffice-writer.desktop; | |
application/ogg=vlc.desktop; | |
application/pdf=epdfview.desktop;gimp.desktop;gimp.desktop; | |
application/pkcs12=gcr-viewer.desktop; |
var webdriver = require('selenium-webdriver'); | |
var fs = require('fs'); | |
var driver = new webdriver.Builder().build(); | |
webdriver.WebDriver.prototype.saveScreenshot = function(filename) { | |
return driver.takeScreenshot().then(function(data) { | |
fs.writeFile(filename, data.replace(/^data:image\/png;base64,/,''), 'base64', function(err) { | |
if(err) throw err; | |
}); |
It's a common pattern in React to wrap a component in an abstraction. The outer component exposes a simple property to do something that might have more complex implementation details.
We used to have a helper function called transferPropsTo
. We no longer support this method. Instead you're expected to use a generic object helper to merge props.
render() {
return Component(Object.assign({}, this.props, { more: 'values' }));