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
styles = { | |
img : { | |
zIndex: 20, | |
position: "absolute", | |
bottom: "0em", | |
right: "1em", | |
}, | |
baloon : { | |
zIndex: 30, | |
position: "absolute", |
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
/** | |
* The reveal.js markdown plugin. Handles parsing of | |
* markdown inside of presentations as well as loading | |
* of external markdown documents. | |
*/ | |
(function( root, factory ) { | |
if (typeof define === 'function' && define.amd) { | |
root.marked = require( './marked' ); | |
root.RevealMarkdown = factory( root.marked ); | |
root.RevealMarkdown.initialize(); |
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
// (1): モックを定義 (1) | |
const mockFileData = `test\n is\n spec.`; | |
jest.mock('fs', () => { | |
return { | |
readFileSync: jest.fn(() => mockFileData), | |
readFile: jest.fn((path, opt, cb) => { | |
cb(null, mockFileData); | |
}); | |
}; | |
}); |
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
function! SendBottomV() range | |
let l:selected = getline(a:firstline, a:lastline) | |
let result = system("tmux send -t bottom \"". join(l:selected,'\n') ."\n\" 2>&1 | cat") | |
endfunction | |
function! SendBottom() | |
let result = system("tmux send -t bottom \"". getline(".") ."\n\" 2>&1 | cat") | |
endfunction | |
function! ClearBottom() |
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 express = require('express'); | |
const app = express(); | |
const axios = require('axios'); | |
const successMsg = { status: 200, message: 'success' }; | |
const POWER_ON = 100; | |
const POWER_OFF = 0; | |
const RETRY_NUM = 10; | |
// レポーターブロックで返す値 |
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
ar toggle = false; | |
$('.searchlight') | |
.on('mousemove', function(event) { | |
$(this).addClass('on').css({'margin-left': event.pageX -150, 'margin-top': event.pageY -150}); | |
}) | |
.on('mouseout', function(event) { | |
$(this).removeClass('on'); | |
}) | |
.on('click', function() { | |
if (toggle) { |