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": "Firefox Tab Manipulater", | |
"rules": [ | |
{ | |
"description": "Firefox Tab Manipulation", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "t" |
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
--- recpt1.c.orig 2019-09-22 18:18:28.164084939 +0900 | |
+++ recpt1.c 2019-09-22 18:23:46.901127087 +0900 | |
@@ -51,23 +51,23 @@ | |
char *channel; | |
int tsid; | |
} preset_ch[NUM_PRESET_CH] = { | |
- { 101, "bs15", 0x40f1 }, { 103, "bs03", 0x4031 }, | |
- { 141, "bs13", 0x40d0 }, { 151, "bs01", 0x4010 }, | |
- { 161, "bs01", 0x4011 }, { 171, "bs01", 0x4012 }, | |
- { 181, "bs13", 0x40d1 }, { 191, "bs03", 0x4030 }, |
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/twittperator.js b/twittperator.js | |
index 62d5b55..b886a39 100644 | |
--- a/twittperator.js | |
+++ b/twittperator.js | |
@@ -2081,6 +2081,30 @@ let INFO = xml` | |
}); | |
}, // }}} | |
sourceScriptFile: function(file) { // {{{ | |
+ const Script = Class("Script", { | |
+ init: function (file) { |
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
Recipe: rbenv::system | |
* rbenv_ruby[2.1.1] (system) action installRecipe: <Dynamically Defined Resource> | |
* rbenv_script[rbenv install 2.1.1 (system)] action run * script[rbenv install 2.1.1 (system)] action run | |
================================================================================ | |
Error executing action `run` on resource 'script[rbenv install 2.1.1 (system)]' | |
================================================================================ | |
Mixlib::ShellOut::CommandTimeout | |
-------------------------------- |
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 "pp" | |
# dimention次元の特徴に対する拡張重みベクトルを | |
# 乱数によって初期化 | |
def initialize_weight(dimention) | |
weight = Array.new(dimention + 1) | |
(dimention + 1).times do |i| | |
weight[i] = rand() |
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
-- Project Euler : Problem 39 | |
import Data.List | |
rectTriangle :: Int -> [Int] | |
rectTriangle n = [a + b + c | a <- [1..(n - 2)], b <- [1..(a - 1)], | |
c <- [1..(b-1)], a^2 == b^2 + c^2, | |
a + b + c <= n] | |
main = print $ snd $ maximum $ map (\x -> (length x, head x)) $ group $ |
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
-- Project Euler : Problem 38 | |
import Data.List | |
isPandigital :: Maybe String -> Bool | |
isPandigital Nothing = False | |
isPandigital (Just x) = all (`elem` x) ['1'..'9'] | |
catProduct :: Int -> Maybe String | |
catProduct x = find (\x -> (length x) == 9) $ map (product x) [2..9] |
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
-- Project Euler : Problem 37 | |
import Data.List | |
import Data.Char | |
-- [a]と[b]の全ての組み合わせをfで計算するzipWithみたいなもの | |
-- 例: zipWith' (*) [1,2,4,8] [1,3] | |
-- >> [1,3,2,6,4,12,8,24] | |
zipWith' :: (a -> b -> c) -> [a] -> [b] -> [c] | |
zipWith' _ _ [] = [] |
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
-- Project Euler : Problem 36 | |
binary :: Integer -> String | |
binary 0 = "0" | |
binary 1 = "1" | |
binary n = (binary $ fst div) ++ (show $ snd div) | |
where div = n `divMod` 2 | |
main = print $ sum [a | a <- [1..999999], | |
(show a) == (reverse $ show a), |
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
#include <iostream> | |
#include <string> | |
#include <list> | |
#include <boost/tokenizer.hpp> | |
#include <boost/algorithm/string.hpp> | |
int main(int argc, char const* argv[]) | |
{ | |
std::string str = "piyo,huga,hoge"; |
NewerOlder