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
| package main | |
| import ( | |
| "context" | |
| "database/sql" | |
| "fmt" | |
| _ "github.com/go-sql-driver/mysql" | |
| "github.com/jmoiron/sqlx" | |
| "log" | |
| ) |
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
| { | |
| "listen": [null, 7890], | |
| "verbose": true, | |
| "color": { | |
| "gamma": 2.5, | |
| "whitepoint": [1.0, 1.0, 1.0] | |
| }, | |
| "devices": [ |
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
| { | |
| "stepSequencerList": [ | |
| { | |
| "params": "{\"startX\": 30, \"rate\": 2, \"stripeIds\": [0]}", | |
| "boolArray": [ | |
| true, | |
| false, | |
| false, | |
| false, | |
| 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
| <?php | |
| $str = "ใใฎใชใใญใใใใใใญใใชใฎใ"; | |
| var_dump(kaibun_check($str)); | |
| function kaibun_check($str) { | |
| $char_code = 'utf8'; | |
| $length = mb_strlen($str, $char_code); | |
| for ($i = 0; $i < $length / 2; $i++) { | |
| if (mb_substr($str, $i, 1, $char_code) !== mb_substr($str, $length - $i - 1, 1, $char_code)) { | |
| return 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
| #!/usr/bin/env ruby | |
| def main | |
| source = ARGV[0] | |
| offset_time = ARGV[1].to_f | |
| trim_time = ARGV[2].to_f | |
| #size = '480x270' | |
| size = ARGV[3] | |
| crop = '' | |
| crop = "-crop #{ARGV[4]}" unless ARGV[4].nil? |
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
| def self.get_user_icon_url(screen_name) | |
| if screen_name.nil? | |
| return nil | |
| end | |
| open_url = "https://twitter.com/#{screen_name}" | |
| require 'open-uri' | |
| begin | |
| doc = open(open_url) | |
| rescue | |
| logger.debug "Can't open #{open_url}" |
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 'readline' | |
| require 'fiddle/import' | |
| module Readline | |
| module LIBREADLINE | |
| extend Fiddle::Importer | |
| # ใใฎใในใฉใใใ | |
| dlload '/usr/local/opt/readline/lib/libreadline.6.2.dylib' | |
| RL_STARTUP_HOOK = import_symbol 'rl_startup_hook' | |
| end |