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
{ | |
"description": "Capture entire screen by PrintScreen", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "print_screen" | |
}, | |
"to": [ | |
{ | |
"key_code": "3", |
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
/* | |
This is the c configuration file for the keymap | |
Copyright 2012 Jun Wako <[email protected]> | |
Copyright 2015 Jack Humbert | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 2 of the License, or | |
(at your option) any later version. |
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
/* | |
This is the c configuration file for the keymap | |
Copyright 2012 Jun Wako <[email protected]> | |
Copyright 2015 Jack Humbert | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 2 of the License, or | |
(at your option) any later version. |
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 v6; | |
class Brainfuck { | |
method run($prog) { | |
my @prog = $prog.comb(/./); | |
my $p_ptr = 0; | |
my @tape = (); | |
my $ptr = 0; | |
while @prog[$p_ptr] -> $char { |
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
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | |
<InputMethod Version="1"> | |
<Version>1</Version> | |
<Name>Dvorak_Left_JP</Name> | |
<Author>August Dvorak</Author> | |
<Language>ja-JP</Language> | |
<Memo>左手用Dvorak配列</Memo> | |
<Weight Language="ja-JP">1.0</Weight> | |
<Signature>07B46AF590BDD9AD1A85660B5A2E8FEFDEB9D26E9DA0FF4C1E818CA34E7B1180BE42FC26213A0A92195BACA9F4EA95F6B5B46AF8BF4124914D2F8362D6CA9AA98F89A64F7B5A5A3D4CE120EE3A10BF619A07D27841238691D364CB363B7E07BF6444203E6A69CA5F9B3942EDDB311542F0943648F4FB415DBA67338FB5ADE6EA</Signature> | |
<KeyFilter> |
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
p ; e | |
@ / * 1 | |
; r ; m ; | |
0 $ l ; | |
i ; / |
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
K(S(SI | |
(K(SS(SS(S(SSS)(SS(SS(SS)(SS(KI))))))(S(KS)K)))) | |
(K(S(SI | |
(K(SS(S(SS(KI))(SS(SS(SS)(SS(KI)))))(S(KS)K)))) | |
(K(S(SI | |
(K(SS(SS(SS(SS(S(SSS)(SS(SS(SS)(SS(KI))))))))(S(KS)K)))) | |
(K(S(SI | |
(K(SS(S(SI(SS(SS(KI))))(SS(S(SSS))(SS(KI))))(S(KS)K)))) | |
(K(S(SI | |
(K(S(SI(SS(SSI(SS(KI)))))(SS(S(SSS)(SSI(SS(KI)))))(S(KS)K)))) |
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
extern crate rand; | |
use std::thread; | |
use std::time::Duration; | |
use rand::Rng; | |
struct Field { | |
width: usize, | |
height: usize, | |
grids: Vec<Vec<bool>> |
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
prog = ">+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-]<.>+++++++++++[<+++++>-]<.>++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[<++++>-]<+.[-]++++++++++." | |
p_ptr = 1 | |
tape = {} | |
ptr = 0 | |
insts = { | |
['>'] = function() ptr = ptr + 1 end, | |
['<'] = function() ptr = ptr - 1 end, | |
['+'] = function() if tape[ptr] == nil then tape[ptr] = 1 else tape[ptr] = tape[ptr] + 1 end end, |
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
fn main() { | |
let prog = ">+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++ | |
++>-]<.>+++++++++++[<+++++>-]<.>++++++++[<+++>-]<.+++.------.--------.[-]> | |
++++++++[<++++>-]<+.[-]++++++++++."; | |
let mut inst = 0; | |
let mut tape = [0; 30000]; | |
let mut ptr = 0; | |
while inst < prog.len() { |
NewerOlder