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
const services = [] | |
const serviceList = ["serviceA", "serviceB", "serviceD"]; | |
serviceList.map((s)=>{ | |
System.import("./services/" + s) | |
.then((mod)=>{ | |
services.push(mod); | |
}) | |
}); |
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
[potato4d@Potato4d cfl_test]$ npm run test | |
> [email protected] test /Users/potato4d/Desktop/cfl_test | |
> coffeelint application.coffee | |
⚡ application.coffee | |
⚡ #2: Unnecessary double quotes are forbidden. | |
⚡ Warning! » 0 errors and 1 warning in 1 file |
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
{ | |
"event":"push", | |
"type":"UserChat", | |
"entity":{ | |
"id":"149139", | |
"channelId":"1148", | |
"personType":"Veil", | |
"personId":"599bf2f432e826c8", | |
"state":"open", | |
"lastMessageId":"599bf2fe223aeff7", |
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> | |
p7.ready() | |
.then(function(p7){ | |
const $$ = function(e){ return document.querySelectorAll(e) }; | |
for(var button of $$('.subscribe-button')){ | |
button.addEventListener('click', function(){ | |
p7.subscribe(); | |
}) | |
} | |
}) |
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
exports.handler = function(_, __, callback){ | |
const axios = require('axios'); | |
const firebase = require('firebase'); | |
const misskey = Object.assign({}, axios); | |
// 悪 | |
const CSRF_TOKEN = 'YOUR-MISSKEY-CSRF-TOKEN' | |
const APPNO = 'YOUR-PUSH7-APPNO' | |
const APIKEY = 'YOUR-PUSH7-APIKEY' | |
const COOKIE = 'YOUR MISSKEY.LINK COOKIE'; |
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
<template> | |
<section class="container"> | |
<img :src="`https://github.com/${user.login}.png`" :alt="user.name"> | |
<h1>{{user.name}}</h1> | |
</section> | |
</template> | |
<script> | |
import axios from 'axios' |
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
export const accountKeys = [ | |
'id', | |
'name', | |
'bio' | |
]; |
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
import firebase from 'firebase' | |
const provider = new firebase.auth.GoogleAuthProvider() | |
firebase.auth().signInWithRedirect(provider) |
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
<div id="app"> | |
<p>Component:</p> | |
<template v-if="isEdit"> | |
<input type="text" :value="foo" @input="onInput"> | |
<button type="button" @click="toggleEdit">Cancel</button> | |
</template> | |
<template v-else> | |
<span>{{foo}}</span> | |
<button type="button" @click="toggleEdit">Edit</button> | |
</template> |
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
import Joi from 'joi-browser' |