Skip to content

Instantly share code, notes, and snippets.

View skahack's full-sized avatar
🐳
...

Hiroki Sato skahack

🐳
...
View GitHub Profile
const React = require('react');
const { EditorBlock } = require('draft-js');
const H3 = (props) => {
return <div>
<span className="h3" style={{color: '#eb6a7a'}}>■</span>
<div style={{display: 'inline-block'}}>
<EditorBlock {...props} value={props.value} />
</div>
</div>;
module "stack" {
source = "github.com/SKAhack/stack"
name = "sugoi-project"
environment = "prod"
key_name = "key-pair-ap-northeast-1"
region = "ap-northeast-1"
availability_zones = "ap-northeast-1a,ap-northeast-1c"
ecs_instance_type = "t2.micro"
internal_subnets = "10.30.0.0/19,10.30.64.0/19"
ecs_ami = "ami-095dbf68"
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ruby
pkgver=2.3.0
_pkgver=${pkgver/_/-}
pkgrel=0
_abi=2.3.0
pkgdesc="An object-oriented language for quick and easy programming"
@skahack
skahack / index.html
Created January 22, 2016 08:37
iOS 9 Safari - workaround
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Viewport Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="/workaround.js"></script>
</head>
<body>
{
"plugins": [
{
"name": "DontMerge",
"options": {
"words": [
"WIP"
]
}
}
@skahack
skahack / word-break.html
Created August 17, 2015 12:59
[chrome] word-breakのバグ?
<html><head></head><body>
<h2 style="
text-rendering: optimizeLegibility;
word-break: break-all;
display: inline-block;
">AAWあ</h2>
</body></html>
<?php
class MyTemplate {
function show($tpl_file_path) {
extract((array)$this);
include($tpl_file_path);
}
}
$tpl = new MyTemplate();
@skahack
skahack / config.json
Created April 25, 2015 05:37
eslintConfig
{
"eslintConfig": {
"ecmaFeatures": {
"jsx": true
},
"env": {
"es6": true
},
"rules": {
"quotes": true,

reactBridgeDidFinishTransaction

- (void)reactBridgeDidFinishTransaction

ReactがViewの計算をすべて終えたタイミングで実行される。TODO: Deprecate thisと宣言部分にあるので、廃止されるかもしれない。

@skahack
skahack / miyamae.js
Created February 24, 2015 13:53
ごみ
var fs = require('fs');
var format = require('json-nice');
var xray = require('x-ray');
var src = 'http://www.city.kawasaki.jp/kurashi/category/24-1-11-3-5-0-0-0-0-0.html';
xray(src)
.select([{
$root: '.mol_tableblock',
"title": "table[summary]",
list: [{