Skip to content

Instantly share code, notes, and snippets.

View naoyamakino's full-sized avatar

Naoya Makino naoyamakino

View GitHub Profile
@naoyamakino
naoyamakino / Addition.sol
Created January 15, 2018 04:36
My first smart contract!
pragma solidity ^0.4.18;
contract Addition {
uint sum;
function Addition() payable public {
}
function () payable public {
@naoyamakino
naoyamakino / gist:2ea64cb234936f287e245d54bb20f8b5
Created May 10, 2017 06:13
How design sprints are done at Google
# How design sprints are done at Google
A quick recap of today's meetup at Airbnb by Google about how they conduct design sprints.
https://www.meetup.com/ProductTank-SF/events/238968626/
![](https://pbs.twimg.com/media/C_bzwR7VwAEZ56j.jpg)
Reminder: pretty much all of contents are available at
http://www.gv.com/sprint/
@naoyamakino
naoyamakino / helloWorld.js
Created March 30, 2017 06:52
my react native journey
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, {
Component,
} from 'react';
import {
function Square(props) {
return (
<button className="square" onClick={() => props.onClick()}>
{props.value}
</button>
);
}
class Board extends React.Component {
@naoyamakino
naoyamakino / gist:b493cb8a4bb190a25a88c7107c1a2ea1
Created November 2, 2016 06:43
Note from Uber Engineering meetup tonight about building and releasing mobile applications
# Uber Mobile Meetup
This is a very rough note from Uber Engineering meetup tonight about building and releasing mobile applications.
https://www.uber.com/p/uber-mobility/
## Uber release release team
- nightly build/beta testing
- internal/external
@naoyamakino
naoyamakino / MainActivity.java
Last active August 29, 2015 14:25 — forked from kmdupr33/MainActivity.java
Showing the terrible practice of having a static reference to a context
public class MainActivity extends LocationManagingActivity implements ActionBar.OnNavigationListener,
GooglePlayServicesClient.ConnectionCallbacks,
GooglePlayServicesClient.OnConnectionFailedListener {
//...
private static MeTrackerStore mMeTrackerStore;
//...
@naoyamakino
naoyamakino / .vimrc
Created February 7, 2014 01:00
my vimrc
set enc=utf-8
set nu
function! WindowsizeMaximize13()
set lines=570
set columns=1810
colorscheme ir_black
endfunction
"command! WindowsizeMaximize13 call WindowsizeMaximize13()
filetype indent plugin on
@naoyamakino
naoyamakino / railsConfAPIDesign.md
Last active October 13, 2016 23:33
"Designing great APIs: Learning from Jony Ive, Orwell, and the Kano" via @jondahl #railsConf
  1. never use a metaphor, simile, or other figure of speech which you are used to seeing in print.
  2. never use a long word where a short one will do
  3. if it's possible to cut a word out, always cut it out.
  4. never use the passive where you can use the active
  5. never use a foreign phrase, a scientific word, or a jargon word if you can think of an everday English equivalent
  6. break any of these rules sooner than say anything outright barbarrous

#Five guiding principles

  1. minimalism
  2. get out of the way
@naoyamakino
naoyamakino / railsConfShopifyScaling.md
Created May 2, 2013 20:31
How Shopify Scales Rails via @johnduff #railsConf

How Shopify Scales Rails John Duff

The Stack:

  • ruby1.9.3-p327
  • rails3.2
  • unicorn 4.5
  • percona Mysql5.5
  • memcache14.14
  • redis2.6

33 app servers, 1172 unicorn workers, 5 job servers, 370 job workers

@naoyamakino
naoyamakino / gist:5504445
Created May 2, 2013 18:53
Dissecting Ruby with Ruby via @schneems #railsConf
Code Triage: gemhttp://www.codetriage.com/
budle open gemName
puts caller.inspect #where it came from
object#method
object.method(:method_name).source_location
method.source_location
self.class.ancestors #get superclass names in order