Mark some material for OpenCL development
OpenCL Series by Rob Farber
http://www.codeproject.com/Articles/110685/Part-1-OpenCL-Portable-Parallelism
| def processor1(obj): | |
| """Require: text; yield firstchar""" | |
| obj['firstchar'] = obj.text[:1] | |
| return obj | |
| def processor2(obj): | |
| """Require: firstchar, text2; yield concat""" | |
| obj['concat'] = obj.firstchar + obj.text2 | |
| return obj |
| class AttributeDict(dict): | |
| __getattr__ = dict.__getitem__ | |
| __setattr__ = dict.__setitem__ | |
| a = AttributeDict() | |
| a['item'] = 1 | |
| assert a.item == 1 |
| import java.utils.Map; | |
| public class ABMap implements Map { | |
| private final Map src; | |
| public ABMap(Map src) { | |
| this.src = src; | |
| } | |
| // First, you need download iframe-transport from following address | |
| // https://github.com/cmlenz/jquery-iframe-transport/raw/master/jquery.iframe-transport.js | |
| // Then, add <script/> tag to your page | |
| $.ajax({ | |
| url: '<url to send file to>', | |
| files: $('select the input:file html tags'), | |
| iframe: true, // use iframe as ajaxTransport | |
| success: function (data) { | |
| // Here we got data(response from server) |
Mark some material for OpenCL development
http://www.codeproject.com/Articles/110685/Part-1-OpenCL-Portable-Parallelism
| // ==UserScript== | |
| // @name Nekonazo Party Wacom Support Fix | |
| // @namespace https://kirisetsz.github.io/ | |
| // @version 0.1 | |
| // @description Load Wacom Tablet support to Nekonazo Party (for WacomWebPlugin) | |
| // @match http://oekaki.so/partyex/* | |
| // @copyright 2012+, kirisetsz | |
| // ==/UserScript== | |
| window.addEventListener('load', function () |
| (function () { | |
| var $ = jQuery; | |
| // Selected Items | |
| var $selected = $('.surface .child .isSelected'); | |
| if (!$selected.is('a.file')) { | |
| // Handle List Box View |
| // ==UserScript== | |
| // @name OneDrive External Links Button | |
| // @namespace https://kirisetsz.github.io/ | |
| // @version 0.1 | |
| // @description 不可視境界線を示す! Permanent external links from skydrive, useful to share links with friends or apply as source for image/audio | |
| // @match https://onedrive.live.com/* | |
| // @copyright 2014, kirisetsz | |
| // ==/UserScript== | |
| var sekai = function () { |
| #!/bin/bash | |
| # Headphone burnin program use SoX tools | |
| function wlog { | |
| echo "[`date +%F\ %T`]" $@ | |
| } | |
| AUDIODEV=${AUDIODEV:-"default"} | |
| wlog "Select device [$AUDIODEV]" |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define BUFFER_SIZE (1024) | |
| int main (int argc, char **argv) { | |
| int flags = 0; | |
| char* path = NULL; |