Skip to content

Instantly share code, notes, and snippets.

View jun784's full-sized avatar
😄

jun784 jun784

😄
  • Tokyo
View GitHub Profile
@jun784
jun784 / gist:5403333
Created April 17, 2013 10:41
MixpanelとKissmetrixの比較レポート
MixpanelとKissmetrixの比較レポートです。
イベントの単位は、
トラッキング(e.g mixpanel.track("User Login"))をした回数みたいです。
それぞれの印象としては、
Mixpanelは
 ・セットアップが簡単。使いやすい。
 ・レポートもわかりやすい。
 ・学習コストが低い。
@jun784
jun784 / gist:5403510
Last active December 16, 2015 08:08
Nodeクックブック
npm -g install hotnode # 自動読み込み, or node-dev?
httpサーバーをたてるには
require('http')
pathを解析・デコード
require('path')
forEachのコールバックは例外で、
獲得の為に
1. JSコードをすべてのマーケティングページ及びテクニカルページに掲載します。
. (As a tẹc̩hnical nōte, we recòmmẹnd you do this because you'll need the snịppèt present to do the e̍vẹnt trịggers anyway)
2. We do mọ̄stly e̍vẹnt trịggers because we like to còntrọ̄l the granularity of the dạ̄tà we're getting instead of just getting pāge-lẹvel URL e̍vẹnts. We like to see things like which bụttòn they clicked on, which veṛ̈s̱ion of the bụttòn they clicked on, etc. (We're anàlỵ̍tics ner̈ds, right?)
For us, it's ẹ̄as̩y when you can trịgger a "Sīǥned Up" e̍vẹnt across all the Sīǥn Up bụttòns on the mạ̈rkèting sīte and then ạttrìbūte prọpèrties to dẹs̩ìgnāte "Hōme Pāge bụttòn" VS "Prị̄cing Pāge bụttòn" VS "Fẹ̄at̨ure Toŭr bụttòn" because we can do ànạlỳsìs lạ̄ter in a rēpọrt to còmpạ͑re all those sẹgments.
Google Spreadsheetにてカスタム関数を利用する
https://developers.google.com/apps-script/execution_custom_functions
@jun784
jun784 / onboarding.hs
Last active August 29, 2015 14:10
CG : haskellの練習
import System.IO
import Control.Monad
import Data.List
import Data.Data
import Data.Function
import Data.Ord
data Enemy = Enemy{name:: String, dist:: Int}
-- [String]とStringの違い...
@jun784
jun784 / com_genesis.json
Created January 11, 2019 04:17
com-genesis.json
{
"config": {
"chainId": 100,
"homesteadBlock": 1,
"eip150Block": 2,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 3,
"eip158Block": 3,
"byzantiumBlock": 4,
"clique": {
@jun784
jun784 / COM.sol
Created August 11, 2019 15:42
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=undefined&optimize=false&gist=
pragma solidity ^0.5.10;
// File: openzeppelin-solidity/contracts/utils/Address.sol
/**
* @dev Collection of functions related to the address type,
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
@jun784
jun784 / COM.sol
Created August 11, 2019 16:02
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.10+commit.5a6ea5b1.js&optimize=true&gist=
pragma solidity ^0.5.10;
// File: openzeppelin-solidity/contracts/utils/Address.sol
/**
* @dev Collection of functions related to the address type,
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
@jun784
jun784 / Soulbound_flat.sol
Created July 27, 2022 08:01
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.2/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters