Electronはどういうものなのかと実際に簡単な例題を作ってみる。
npm i -g electron-prebuilt
/* Temporary fix for \frac and subscript */ | |
.katex .frac-line { | |
top: 0.85em; | |
position: relative; | |
} | |
.katex .reset-textstyle.scriptstyle { | |
top: 0.4em; | |
position: relative; | |
} |
{ | |
"type": "root", | |
"children": [ | |
{ | |
"type": "paragraph", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Inline math! ", | |
"position": { |
<?php | |
class PostController extends BaseController{ | |
function create(){ | |
return View::make('posts.create'); | |
} | |
function store(){ | |
DB::table('posts')->insert([ | |
'title'=>Input::get('title'), | |
'body'=>Input::get('body') |
'use strict' | |
const got = require('got') | |
const fs = require('fs') | |
const path = require('path') | |
let beta = fs.readFileSync(path.join(__dirname, 'beta.json')) | |
beta = JSON.parse(beta) | |
let data = [] | |
for (let key in beta) { |
var crypto = require('crypto') | |
function keygen () { | |
return crypto.randomBytes(6).toString('hex') | |
} | |
var _ = require('lodash') | |
var arr = [] | |
for (var i = 0; i < 1000; i++) { | |
arr.push({ | |
key: keygen(), | |
index: i |
tset |
{ | |
"always_show_minimap_viewport": true, | |
"binary_file_patterns": | |
[ | |
"node_modules/*", | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", |
import numpy as np | |
from math import * | |
dt = 0.1 | |
a11 = (2 * e ** -dt) - (e ** -(2 * dt)) | |
a12 = (e ** -dt) - (e ** -(2 * dt)) | |
a21 = (-2 * e ** -dt) + (2 * e ** -(2 * dt)) | |
a22 = (-e ** -dt) + (2 * e ** -(2 * dt)) |
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>http://localhost:8000</AllowedOrigin> | |
<AllowedMethod>HEAD</AllowedMethod> | |
<AllowedMethod>GET</AllowedMethod> | |
<AllowedMethod>PUT</AllowedMethod> | |
<AllowedMethod>POST</AllowedMethod> | |
<AllowedMethod>DELETE</AllowedMethod> | |
<AllowedHeader>*</AllowedHeader> |