Skip to content

Instantly share code, notes, and snippets.

View IKKO-Ohta's full-sized avatar

IKKO-Ohta IKKO-Ohta

View GitHub Profile

Vuex学習

Vuexとは何か

  1. state管理パターン+ライブラリのセットで、vueと深く連携する
  2. 予測可能な方法でのみstateの変更を行う
  3. デバッグのときに、詳細なstateの変更履歴をトレースする

どのようなアドバンテージがあるか? / どのような効果を狙って導入するか?

  1. state バケツリレーを阻止する
  2. 状態管理に関する概念を定義・分離し、特定のルールのもとで整理する。
title layout permalink
CSS Questions
layouts/page.njk
/questions/css-questions/index.html
  • What is CSS selector specificity and how does it work?
  • What's the difference between "resetting" and "normalizing" CSS? Which would you choose, and why?
  • Describe Floats and how they work.
  • Describe z-index and how stacking context is formed.
@IKKO-Ohta
IKKO-Ohta / app.jsx
Last active August 16, 2018 14:51
react-routingについて
import React from "react";
import { render } from "react-dom";
import { Router, Route, hashHistory } from "react-router";
import Login from "./Login";
import Signup from "./Signup";
import Rooms from "./Rooms";
import Room from "./Room";
import mainBar from "./mainBar"
import Project from "./Project"
import Projects from "./Projects"
@IKKO-Ohta
IKKO-Ohta / (2)0724.md
Last active July 25, 2018 02:19
(2)0724

unigram

未知語の処理には線形補間を用いる。
コーパスの総単語数をNとする。
与えられた文Sをtokenizeして[w_0,w_1...]に分割したとき、 Imgur

    def prob(self, sent,l=0.95):
        """
        param:
function cashImg(url){
const {ipcRenderer} = require("electron");
var cashUrl = ""
ipcRenderer.send("downloadImgSig",url);
const imgMakeTask = new Promise((resolve,reject) =>{
ipcRenderer.once("imgManagerResponsed",(event,arg) =>{
console.log("breakpoint1:",arg);
resolve(arg);
})
});
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IKKO-Ohta
IKKO-Ohta / ARC083[D].go
Last active September 20, 2017 16:40
ARC083[D].go
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
@IKKO-Ohta
IKKO-Ohta / ARC083[C].go
Last active September 20, 2017 16:54
ARC083[C].go
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
@IKKO-Ohta
IKKO-Ohta / ABC002[D].py
Created September 14, 2017 15:49
ABC002[D].py
import itertools
nums = [int(x) for x in input().split()]
N,M = nums[0],nums[1]
# make
matrix = [[0 for i in range(N)] for j in range(N)]
for i in range(M):
nums=[int(x) for x in input().split()]
a,b = nums[0]-1,nums[1]-1
matrix[a][b] = 1
@IKKO-Ohta
IKKO-Ohta / ABC01[D].py
Last active September 14, 2017 15:57
ABC01[D].py
N = int(input())
imos = [0 for i in range(1443)]
def mystart(a_minute):
while(1):
if a_minute % 5 == 0 : break
a_minute -=1
return a_minute
def myend(a_minute):