flowchart LR;
subgraph Domain
subgraph "Entiry(freezed)"
end
subgraph Provider1
subgraph Service
end
subgraph Repository
end
This file contains 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
import os | |
import subprocess | |
import sys | |
# This script cleans flutter projects by deleting caches and build outputs. | |
# Example: | |
# $ python flutter_clean.py /Users/razokulover/src/github.com/YuheiNakasaka | |
def rm_ios_files(abs_path): |
This file contains 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
start = 0 | |
sec = 2 | |
if ARGV.length == 3 | |
file = ARGV[0] | |
start = ARGV[1] | |
sec = ARGV[2] | |
else | |
file = ARGV[0] | |
end |
This file contains 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
# Usage: | |
# ruby spectrogram.rb <FILE URL> | |
# Example: | |
# ruby spectrogram.rb http://www.imenterprise.jp/voice/voice/v86.mp3 | |
unless ARGV[0].nil? | |
filename = File.basename(ARGV[0]).sub(/\..*/, '') | |
start = ARGV[1] || 0 | |
duration = ARGV[2] || 1.5 | |
system("wget #{ARGV[0]} -O #{filename}.mp3") | |
system("ffmpeg -y -i #{filename}.mp3 -vn -ac 2 -ar 44100 -acodec pcm_s16le -f wav #{filename}.wav") |
This file contains 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"?> | |
<!DOCTYPE policymap [ | |
<!ELEMENT policymap (policy)+> | |
<!ELEMENT policy (#PCDATA)> | |
<!ATTLIST policy domain (delegate|coder|filter|path|resource) #IMPLIED> | |
<!ATTLIST policy name CDATA #IMPLIED> | |
<!ATTLIST policy rights CDATA #IMPLIED> | |
<!ATTLIST policy pattern CDATA #IMPLIED> | |
<!ATTLIST policy value CDATA #IMPLIED> | |
]> |
This file contains 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 "nokogiri" | |
require "open-uri" | |
require 'fileutils' | |
# create directory to download pdfs | |
download_dir = "/home/hoge/iraq-nippo-list" | |
if !File.exists?(download_dir) | |
FileUtils::mkdir_p(download_dir) | |
end |
This file contains 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 ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
fmt.Println("Start") | |
queue := make(chan int, 3) |
This file contains 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
/* @flow */ | |
function p(w: string) { | |
return new Promise(resolve => { | |
setTimeout(() => { | |
resolve(w); | |
}, 100); | |
}); | |
} |
NewerOlder