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
10 PRINT "X'mas" | |
20 PLAY "cde" | |
30 END |
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
ほげふが |
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
it("キーワード指定された文字が赤太文字となること", () => { | |
let expectedText = "Hello \u001b[31m\u001b[1mhideack\u001b[22m\u001b[39m. Have a \u001b[31m\u001b[1mnice\u001b[22m\u001b[39m day"; | |
assert.equal(util.decolateText("Hello hideack. Have a nice day"), expectedText, "hideackとniceという単語が赤太文字になっている"); | |
} |
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
it("キーワード指定された文字が赤太文字となること", () => { | |
let expectedText = "Hello \u001b[31m\u001b[1mhideack\u001b[22m\u001b[39m. Have a \u001b[31m\u001b[1mnice\u001b[22m\u001b[39m day"; | |
assert.equal(util.decolateText("Hello hideack. Have a nice day"), expectedText, "hideackとniceという単語が赤太文字になっている"); | |
} |
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
'use strict'; | |
const execa = require('execa'); | |
const plist = require('simple-plist'); | |
(async () => { | |
const {stdout} = await execa('ioreg', ['-k', 'BatteryPercent', '-r', '-a']); | |
let data = plist.parse(stdout); | |
console.log(data); | |
})(); |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/encoding-japanese/1.0.30/encoding.min.js" integrity="sha512-rqL5c2sp6KdRdB27P16dSYF9J3/WrP+UHrKuzWiN6304wz0bzv1ZE8G+zieQGSnNfg9UasgKNOQzv4yir7+Prg==" crossorigin="anonymous"></script> |
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
let files = event.target.files; // ここはファイル選択だったりドラッグ&ドロップのイベントだったりで変わる | |
let reader = new FileReader(); | |
reader.readAsBinaryString(files[0]); | |
reader.onload = (ev) => { | |
const unicodeList = reader.result.split('').map((v) => v.charCodeAt()); | |
const uploadText = Encoding.convert(unicodeList, {to:'UNICODE', from:Encoding.detect(unicodeList), type:'string'}); | |
console.log(uploadText); | |
}; |
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
let files = event.target.files; // ここはファイル選択だったりドラッグ&ドロップのイベントだったりで変わる | |
let reader = new FileReader(); | |
reader.readAsBinaryString(files[0]); | |
reader.onload = (ev) => { | |
const unicodeList = reader.result.split('').map((v) => v.charCodeAt()); | |
const uploadText = Encoding.convert(unicodeList, {to:'UNICODE', from:Encoding.detect(unicodeList), type:'string'}); | |
console.log(uploadText); | |
}; |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/encoding-japanese/1.0.30/encoding.min.js" integrity="sha512-rqL5c2sp6KdRdB27P16dSYF9J3/WrP+UHrKuzWiN6304wz0bzv1ZE8G+zieQGSnNfg9UasgKNOQzv4yir7+Prg==" crossorigin="anonymous"></script> |
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
#include <stdio.h> | |
#include <SPI.h> | |
#include <Ethernet.h> | |
byte mac[] = {0x00,0xAA,0xBB,0xCC,0xDE,0x02}; // イーサシールドのMacアドレス記入 | |
char hostname[] = "***.sqale.jp"; // 契約中のレンタルサーバのホスト名 | |
char serverName[256]; | |
char httpHeaderHost[256]; | |
EthernetClient client; |
NewerOlder