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
// Build: | |
// clang hidnative.c -o hidnative -framework IOKit -framework CoreFoundation | |
// | |
// Run: | |
// sudo ./hidnative | |
#include <IOKit/hid/IOHIDManager.h> | |
#include <IOKit/hid/IOHIDKeys.h> | |
#include <IOKit/IOKitLib.h> | |
#include <CoreFoundation/CoreFoundation.h> |
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
package main | |
import ( | |
"reflect" | |
"appengine" | |
"appengine/datastore" | |
) | |
// define Map |
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
--- | |
- name: Test split | |
hosts: localhost | |
gather_facts: false | |
vars: | |
- facter_blockdevices: "sda,sdb,sdc,sdd,sde,sdf" | |
tasks: | |
- name: Let's split | |
debug: var=item | |
with_items: "facter_blockdevices.split(',')" |
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
require "sinatra" | |
get %r{/([\w]+)/foo} do |bar| | |
puts bar | |
end |
NewerOlder