Skip to content

Instantly share code, notes, and snippets.

View noboru-i's full-sized avatar
🏠
Always working from home

Noboru ISHIKURA noboru-i

🏠
Always working from home
View GitHub Profile
@noboru-i
noboru-i / escape.dart
Created January 12, 2021 04:18
Escape invalid file chars
void main() {
final fileName = '1<2>3:4*5?6”7/8\\9|0';
final escaped = fileName.replaceAll(RegExp(r'<|>|:|\*|\?|”|/|\\|\|'), '_');
print('escaped is $escaped');
}
@noboru-i
noboru-i / main.dart
Last active July 15, 2020 05:06
Parsing DateTime strings.
void main() {
// no time zone string, parse as local datetime.
test("2020-07-15 04:00:00.000");
// suffix "Z", parse as UTC date time.
test("2020-07-15 04:00:00.000Z");
// has time zone string, parse as UTC date time with offset.
test("2020-07-15 04:00:00.000+09:00");
}
void test(String dateStr) {
@noboru-i
noboru-i / sample.lua
Created October 9, 2018 12:40
Agile Japan 2018 北陸(富山)サテライト モブプロの成果物
function suit(num)
_suit_card = math.ceil(num / 13)
if _suit_card == 1 then
return "heart"
elseif _suit_card == 2 then
return "spade"
elseif _suit_card == 3 then
return "club"
elseif _suit_card == 4 then
return "diamond"
@noboru-i
noboru-i / links.md
Created August 17, 2018 15:16
リモートワークAndroidエンジニアの作業場(2018夏)のリンク
@noboru-i
noboru-i / q2.rb
Last active April 16, 2016 08:11
あんまり綺麗じゃない
module Q2
COL = 3
ROW = 3
SIZE = COL * ROW
CENTER_NUM = 5
@result = 0
def self.create_combi
@combi = []
@noboru-i
noboru-i / q1.rb
Last active April 16, 2016 05:19
Toyama.rb 1問目
module Q1
INIT_AMOUNT = 1000
COINS = [500, 100, 50, 10]
@valid_coins = []
def self.push_if_valid(amount, coins)
return if coins.size >= 15
puts "#{amount}, #{coins}"
COINS.each do |coin|

GCPからAWSに移行した話(仮)

免責事項

  • まだ移行完了していません。
  • 使い倒した人から見ると、浅いことを言っている可能性があります。
  • どこのクラウドが良い悪いではなく、適材適所だと思っています。

自己紹介

  • 石倉 昇
@noboru-i
noboru-i / phpcs.ruleset.xml
Created December 4, 2015 02:14
ML標準PHP規約
<?xml version="1.0"?>
<ruleset name="ML">
<description>Monstar Lab coding standard.</description>
<rule ref="PSR2"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="180"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
{
"name": "OpenCV",
"version": "2.4.9",
"summary": "OpenCV (Computer Vision) for iOS.",
"homepage": "http://opencv.org",
"description": "OpenCV: open source computer vision library\n\n Homepage: http://opencv.org\n Online docs: http://docs.opencv.org\n Q&A forum: http://answers.opencv.org\n Dev zone: http://code.opencv.org",
"license": {
"type": "3-clause BSD",
"text": "By downloading, copying, installing or using the software you agree to this license.\nIf you do not agree to this license, do not download, install,\ncopy or use the software.\n\n\n License Agreement\n For Open Source Computer Vision Library\n (3-clause BSD License)\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n * Redistribution's of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n\n * Redistribution's in binary form must reproduce
@noboru-i
noboru-i / MainActivity.java
Created June 22, 2015 06:17
SDカードのシリアル番号を取得
package hm.orz.chaos114.sdcardinspector;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.util.Log;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;