View index.js
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
alert(true); |
View cmc.sh
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 -x | |
PROGNAME=$(basename $0) | |
VERSION='2.0' | |
declare -a FILES=() | |
usage() { | |
echo "Usage: $PROGNAME [OPTIONS]" | |
echo " This script is sending email from shell script by Customers Mail Cloud." |
View notableToBoostnote.js
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 fs = require('fs'); | |
const { promisify } = require('util'); | |
const metadataParser = require('markdown-yaml-metadata-parser'); | |
const baseDir = '/path/to/Notable/notes'; | |
const outputDir = '/path/to/Boostnote'; | |
(async () => { | |
const files = await promisify(fs.readdir)(baseDir); | |
const fileList = files.filter((file) => /.*\.md$/.test(file) && fs.statSync(`${baseDir}/${file}`).isFile()); |
View index.js
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 a_class = ncmb.DataStore('A_class'); | |
const b_class = ncmb.DataStore('B_class'); | |
// ↓ ここ | |
ons.ready(async function() { | |
const result = await a_class.fetchAll(); | |
for (let row of result) { | |
const result2 = await b_class | |
.relatedTo(row, 'tests') | |
.fetchAll(); | |
objectB.push(result2.count); |
View code.js
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 myFunction() { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Data") | |
var apiKey = sheet.getRange(1, 2).getValue(); | |
var qf = new QualityForward.Client(apiKey); | |
var resultSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("TestResult") | |
var today = new Date; | |
var testPhaseId = sheet.getRange(2, 2).getValue();; | |
var testSuiteAssignmentId = sheet.getRange(3, 2).getValue();; | |
var testCycleId = sheet.getRange(4, 2).getValue();; |
View index.js
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
async function select(category) { | |
myNavigator.pushPage('display.html'); //画面遷移 | |
var LaundryData = ncmb.DataStore("LaundryData"); | |
var currentUser = ncmb.User.getCurrentUser(); | |
try { | |
// awaitに変更 | |
var results = await LaundryData.equalTo("owner", currentUser.get("userName")) //現在ログインしているユーザ、あてはまるカテゴリで検索 | |
.equalTo("categoryData", category) | |
.order("laundryName") | |
.fetchAll(); |
View index.js
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
({}).constructor.name | |
// -> "Object" |
View index.js
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 hello() {}).constructor.name | |
// -> "Function" |
View index.js
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
class Hello {}; | |
const hello = new Hello; | |
hello.constructor.name; | |
// -> "Hello" |
View index.js
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
typeof 1 | |
// -> "number" | |
typeof 0.001 | |
// -> "number" | |
0.001.constructor.name | |
// -> "Number" | |
isNaN(0.001) | |
// -> false |
NewerOlder