This file contains hidden or 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": "batty", | |
"author": "hirakiuc", | |
"notes": "A split keyboard with 3x6 vertically staggered keys, 4 thumb keys, 2 keys for little fingers", | |
"switchMount": "cherry", | |
"plate": true, | |
"pcb": false | |
}, | |
[ |
This file contains hidden or 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
{ | |
"title": "Escape from kana on vim", | |
"rules": [ | |
{ | |
"description": "Change input source to eisu with escape on vim", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "escape", |
This file contains hidden or 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
diff --git a/tmk_core/common/avr/bootloader.c b/tmk_core/common/avr/bootloader.c | |
index c4b913280..bc9f545d4 100644 | |
--- a/tmk_core/common/avr/bootloader.c | |
+++ b/tmk_core/common/avr/bootloader.c | |
@@ -70,7 +70,8 @@ | |
* http://www.fourwalledcubicle.com/files/LUFA/Doc/120730/html/_page__software_bootloader_start.html | |
*/ | |
#define BOOTLOADER_RESET_KEY 0xB007B007 | |
-uint32_t reset_key __attribute__ ((section (".noinit"))); | |
+//uint32_t reset_key __attribute__ ((section (".noinit"))); |
This file contains hidden or 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
map <C-f> scrollFullPageDown | |
map <C-b> scrollFullPageUp |
This file contains hidden or 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
'use strict' | |
const fs = require('fs'); | |
const path = require('path'); | |
const zlib = require('zlib'); | |
const gunzip = zlib.createGunzip(); | |
const stream = require('stream'); | |
const byline = require('byline'); | |
const util = require('util'); |
This file contains hidden or 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 'aws-sdk' | |
rds_client = Aws::RDS::Client.new | |
rds_resource = Aws::RDS::Resource.new(client: rds_client) | |
ec2_client = Aws::EC2::Client.new | |
ec2_resource = Aws::EC2::Resource.new(client: ec2_client) | |
def format_instance(rds, vpc_name) | |
[ |
This file contains hidden or 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
const gulp = require('gulp'); | |
const reduce = require('gulp-reduce-file'); | |
const collect = (file, samples) => { | |
const api = JSON.parse(file.contents.toString('UTF-8')); | |
samples.push({ | |
id: (file.relative).replace('.json', ''), | |
text: api.info.title | |
}); |
This file contains hidden or 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
class SimpleIterator | |
attr_accessor :step | |
def initialize | |
@values = (1..10).to_a | |
@pos = 0 | |
@step = 0 | |
end | |
def next |
This file contains hidden or 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 'stringio' | |
# Create StringIO object from binary data file | |
StringIO.new(File.binread('pict.jpg'), 'rb') | |
# Create StringIO object from text data file | |
StringIO.new(File.read('memo.txt', encoding: Encoding::UTF_8), 'r') |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'rspec' | |
def swap(ary, n, m) | |
v = ary[n] | |
ary[n] = ary[m] | |
ary[m] = v | |
nil |
NewerOlder