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
function getClientInfo() { | |
return { | |
"name": SV.T("Pronounce Hiragana with Chinese Voice"), | |
"author": "SO_C", | |
"versionNumber": 1.2, | |
"minEditorVersion": 65537 | |
}; | |
} | |
function getTranslations(langCode) { |
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
var SCRIPT_TITLE = "Change Track Color"; | |
function getClientInfo() { | |
return { | |
"name": SV.T(SCRIPT_TITLE), | |
"author": "so-c", | |
"versionNumber": 1, | |
"minEditorVersion": 65537 | |
}; | |
} |
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
digraph production_science_pack { | |
size="20, 20"; | |
bgcolor = "transparent"; | |
rankdir = TD; | |
ranksep = 0.3 | |
node [colorscheme="paired12", shape=box, style="rounded, filled", fontname = "Yu Gothic UI, Segoe UI"]; | |
edge [color="/X11/dimgrey", fontname = "Yu Gothic UI, Segoe UI", fontsize=10] | |
"ユーティリティSP"[color = 11] |
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
dat <- tribble(~uta, ~fude, ~sumi, ~kami, | |
52700, 14, 10, 14, | |
46500, 16, 16, 22, | |
52700, 12, 16, 14, | |
57040, 18, 12, 16, | |
38440, 14, 22, 12, | |
48980, 14, 10, 14, | |
46980, 8, 14, 12, | |
47740, 20, 20, 12, | |
31000, 16, 8, 16, |
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
library("tidyverse") | |
raw.entries <- data.frame(年=factor(c(2012, 2013, 2014, 2015, 2016)), | |
小説=c(69, 65, 71, 65, 90), | |
読書=c(34, 48, 24, 30, 21), | |
新書=c(3, 2, 9, 5, 4), | |
漫画=c(17, 44, 67, 80, 97)) | |
entries <- raw.entries %>% gather(ラベル, 冊数, -年) |
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
void setup() { | |
size(800, 600); | |
background(255); | |
stroke(119, 117, 173); | |
drawTree(width/2, height, 100, 0, 12); | |
save("fractal-tree.png"); | |
println("done!"); |
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
<redpen-conf lang="ja"> | |
<validators> | |
<!--Rules on sentence length--> | |
<validator name="SentenceLength"> | |
<property name="max_len" value="100"/> | |
</validator> | |
<validator name="CommaNumber" /> | |
<!--Rules on expressions--> | |
<validator name="ParagraphNumber"/> |
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
// 選択行に連番を降るサクラエディタマクロ | |
autoFill = (function(){ | |
var i = 0, | |
lines = '', | |
firstLine = 0, | |
length = 0, | |
digit = 0; | |
lines = Editor.GetSelectedString(/* API仕様の固定値 */0); | |
if (lines === '') { |
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
library("ggplot2") | |
entries <- data.frame(label=factor(c("小説", "読書", "漫画", "新書"), | |
levels=c("小説", "読書", "漫画", "新書")), | |
num=c(64, 48, 44, 2)) | |
g <- ggplot(entries, aes(x=label, y=num, fill=label)) | |
p <- g + geom_bar() | |
p <- p + xlab("ラベル") + ylab("投稿数") + ggtitle("2013年に読んだ本") + theme(legend.position = "none") |
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
/** | |
* Make a line chart with the data exported from iOS App SimppleDiet to Google Docs Spreadsheet. | |
*/ | |
function addLineGraph() { | |
var sheets = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = sheets.getSheets()[0]; | |
var allRange = sheet.getDataRange(); | |
var range = sheet.getRange(1, 1, allRange.getLastRow(), 2); | |
var chart = sheet.newChart().asLineChart() |
NewerOlder