Skip to content

Instantly share code, notes, and snippets.

View ryu1-1uyr's full-sized avatar
🐉
ryu

Ryu ryu1-1uyr

🐉
ryu
View GitHub Profile
@ryu1-1uyr
ryu1-1uyr / test.js
Created May 8, 2018 01:13
javascriptでSKIとかTFの実装とか
const I = x => x;
const K = x => y => x;
const S = x => y => z => x(z)(y(z));
const p = console.log;
const T = x => y => x;
const F = x => y => y;
//p(T(1)(0));
@ryu1-1uyr
ryu1-1uyr / hoge.php
Created May 8, 2018 00:47
php DB接続周りの参考
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>cotemttest</title>
</head>
<body>
<div>
<?php
$user = 'ryu';
@ryu1-1uyr
ryu1-1uyr / App.css
Created May 8, 2018 00:45
ぽけもん
b:dy {
text-align: center;
background: #000;
color:#333;
}
.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 80px;
}
@ryu1-1uyr
ryu1-1uyr / App.js
Created May 8, 2018 00:43
じゃんけん
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
@ryu1-1uyr
ryu1-1uyr / App.js
Created May 8, 2018 00:43
マネーブック
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './App.css';
import './index.css'
class MoneyBook extends Component {
constructor(props){
super(props)
this.state = {books: []}
@ryu1-1uyr
ryu1-1uyr / Fizzbuzz.js
Last active May 10, 2018 05:39
yammerにさらすよう。ちょっとだけ読みやすくしてる。でもまだださい。
let [F,B,i,p] = ["Fizz","Buzz",(-~[]),console.log];
for(;i<=((-~[]+[])+(![]-[])+(![]-[]))-[];i++){
i%3==0?i%5==0?p(F+B):p(F):i%5==0?p(B):p(i)
}
@ryu1-1uyr
ryu1-1uyr / fizzbuzzzzz.js
Created May 6, 2018 16:53
普通の書き方...
for(let i=0;i<=100;i++){i%3==0?i%5==0?console.log("FizzBuzz"):console.log("Fizz"):i%5==0?console.log("buzz"):console.log(i)}
@ryu1-1uyr
ryu1-1uyr / fizzbuzz.js
Created May 6, 2018 16:50
![]-[]たのしいよ
for(let i=(-~[]-[]);i<=((-~[]+[])+(![]-[])+(![]-[]))-[];i++){i%3==0?i%5==0?console.log("FizzBuzz"):console.log("Fizz"):i%5==0?console.log("buzz"):console.log(i)}
@ryu1-1uyr
ryu1-1uyr / index.css
Created March 31, 2018 18:32
move by Style
html,body{
height: 100%;
width: auto;
}
#red-box,#blue-box,#yellow-box{
width: 100px;
height: 100px;
margin:40px;
position: relative;
text-align: center;
@ryu1-1uyr
ryu1-1uyr / index.php
Last active March 14, 2018 06:17
接続テスト
<!DOCTYPE html>
<html lang="en">
<head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>cotemttest</title>
</head>
<body>