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
// 代表的なページタイプを取得して、最終的な移行計画を作成 | |
const fileContent = await window.fs.readFile('tdwda.json', { encoding: 'utf8' }); | |
// ページタイトルとIDのマッピングを作成(後でディレクトリ構造に使用) | |
const titleToIdMap = {}; | |
const pagePattern = /"title":"([^"]+)","created":(\d+),"updated":(\d+),"id":"([^"]+)","views":(\d+)/g; | |
let match; | |
while ((match = pagePattern.exec(fileContent))) { | |
const title = match[1]; |
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
#!/bin/bash -e | |
# take screenshot to clipboard | |
#flameshot gui -r | xclip -selection clipboard -t image/png | |
selection=$(hacksaw -f "-i %i -g %g") | |
shotgun $selection - | xclip -t 'image/png' -selection clipboard |
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
// Game.java- | |
public class Game | |
{ | |
public int score() | |
return scoreForFrame (its Current Frame); | |
${ | |
} | |
public void add (int pins) | |
{ | |
} |
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 java.util.ArrayList; | |
import java.util.List; | |
class Game { | |
private List<Frame> frames; | |
public Game() { | |
frames = new ArrayList<>(); | |
} |
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
sudo apt-get install curl jq git tig openssl ca-certificates build-essential software-properties-common iproute2 | |
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf | |
curl -LO https://github.com/ogham/exa/releases/download/v0.8.0/exa-linux-x86_64-0.8.0.zip | |
unzip exa-linux-x86_64-0.8.0.zip | |
sudo chown root:root exa-linux-x86_64 && sudo mv exa-linux-x86_64 /usr/bin/exa | |
curl -LO https://github.com/sharkdp/bat/releases/download/v0.4.1/bat_0.4.1_amd64.deb | |
sudo dpkg -i bat_0.4.1_amd64.deb && rm bat_0.4.1_amd64.deb |
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 'csv' | |
require 'uri' | |
require 'time' | |
require 'natto' | |
require 'json' | |
nm = Natto::MeCab.new | |
wordHash = {} | |
charset = nm.dicts.first.charset |
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 'open-uri' | |
require 'nokogiri' | |
require 'json' | |
def get_content(url) | |
charset = nil | |
html = open(url) do |f| | |
charset = f.charset | |
f.read | |
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
require 'open-uri' | |
require 'nokogiri' | |
def get_content(url) | |
charset = nil | |
html = open(url) do |f| | |
charset = f.charset | |
f.read | |
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
WheelUp:: | |
Send {WheelDown} | |
Return | |
WheelDown:: | |
Send {WheelUp} | |
Return |
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
#!/bin/bash | |
# Delay before starting | |
DELAY=1 | |
# Beep to let one know when recording is about to start (and ends) | |
beep() { | |
echo -e "\007" > /dev/`who | awk '{print $2}'` & | |
} |
NewerOlder