- http://www.libspark.org/wiki/scratchbrain/AverageColor | AverageColor | A util-class to calculate the average between 2 colors (Hex, RGB or HSB format).
- http://www.libspark.org/wiki/nutsu/Frocessing/en | Frocessing | AS3 drawing library similar to Processing.
- http://www.libspark.org/wiki/gunyarapaint | gunyarapaint | Painting component for picture blog.
- http://www.libspark.org/wiki/trick7/TeraFire | TeraFire | Fire effect, useful to render animated candles or stoves.
This file contains 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
%%%------------------------------------------------------------------- | |
%%% @author Fernando Benavides <[email protected]> | |
%%% @copyright (C) 2011 Inaka Networks S.R.L. | |
%%% @doc It listens and just repeats... | |
%%% @end | |
%%%------------------------------------------------------------------- | |
-module(gen_event_repeater). | |
-author('Fernando Benavides <[email protected]>'). | |
-behaviour(gen_event). |
This file contains 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
%%% @author Sergey Prokhorov <[email protected]> | |
%%% @copyright (C) 2013, Sergey Prokhorov | |
%%% @doc | |
%%% Walker alias method - efficient random selection with defined probabilities. | |
%%% <http://en.wikipedia.org/wiki/Alias_method> | |
%%% | |
%%% > ProbabilityValueList = [{10, a}, {20, b}, {30, c}, {40, d}], | |
%%% > WalkerVectors = walker_alias:build(ProbabilityValueList), | |
%%% > RandomValue = walker_alias:choice(WalkerVectors). | |
%%% |
This file contains 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
# Screen Options ## | |
shell bash # Tell screen your default shell | |
startup_message off # Turn off start message | |
defscrollback = 5000 | |
shelltitle '$ |bash' # Dynamic window titled for running program | |
msgwait 1 # Set messages timeout to one second | |
nethack on # Turn on nethack error messages | |
backtick 0 0 0 whoami # Set "%0`" to equal the output of "whoami" | |
escape ^Oo |
This file contains 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
"20091020 | |
let mapleader=";" | |
" " " 映射 | |
" " 页面操作 | |
" 一次移动5行 | |
noremap j 5j | |
noremap k 5k | |
" 上下滚动 |
This file contains 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
# Start the old vagrant | |
$ vagrant init centos-6.3 | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on | |
# this machine, please update the guest additions and repackage the | |
# box. |
This file contains 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
#!/bin/bash | |
# options: | |
# remove stopped containers and untagged images | |
# $ dkcleanup | |
# remove all stopped|running containers and untagged images | |
# $ dkcleanup --reset | |
# remove containers|images|tags matching {repository|image|repository\image|tag|image:tag} | |
# pattern and untagged images | |
# $ dkcleanup --purge {image} |
This file contains 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
local redis_c = require "resty.redis" | |
local ok, new_tab = pcall(require, "table.new") | |
if not ok or type(new_tab) ~= "function" then | |
new_tab = function (narr, nrec) return {} end | |
end | |
local _M = new_tab(0, 155) |
##motions
motion | description |
---|---|
h | Count characters left |
l | Count characters right |
^ | To the first character of the line |
$ | To the last character of the line |
f<char> | To the counth character occurrence to the right. F<char> to the counth character occurrence to the left |
t<char> | To 1 character just before the counth character occurrence to the right |
T<char> | To 1 character just before the counth character occurrence to the left |
OlderNewer