- Homebrew should be installed (Command line tools for Xcode are included).
- Install
nvmvia Homebrew
| #install FlameGraph library | |
| cd /opt/ | |
| sudo git clone https://github.com/brendangregg/FlameGraph.git | |
| #make it accesible from any folder | |
| vim ~/.bashrc | |
| ##add these lines anywhere and exit vim (if you can) | |
| export FLAMEPATH=/opt/FlameGraph | |
| PATH=$PATH:$FLAMEPATH | |
| package main | |
| import ( | |
| "bytes" | |
| "compress/gzip" | |
| "database/sql/driver" | |
| "errors" | |
| "fmt" | |
| "github.com/jmoiron/sqlx" | |
| _ "github.com/mattn/go-sqlite3" |
| # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
| # that enables you to choose a character from a menu of options. If you are on Lion | |
| # try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
| # for input. | |
| # | |
| # It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
| # it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode, | |
| # as it means you cannot press and hold h/j/k/l to move through your file. You have | |
| # to repeatedly press the keys to navigate. |
nvm via Homebrew| const createMySocketMiddleware = (url) => { | |
| return storeAPI => { | |
| let socket = createMyWebsocket(url); | |
| socket.on("message", (message) => { | |
| storeAPI.dispatch({ | |
| type : "SOCKET_MESSAGE_RECEIVED", | |
| payload : message | |
| }); | |
| }); |
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <!-- | |
| # Material Design Dimensions | |
| These dimensions are provided as per Material Design Guidelines | |
| to adhere to a 8 dp baseline grid. (With the exception of the | |
| toolbar and notification bar.). | |
| ## References |
| // @flow | |
| import type { | |
| StyleObj, | |
| } from 'react-native/Libraries/StyleSheet/StyleSheetTypes'; | |
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { Text, View, StyleSheet } from 'react-native'; | |
| import invariant from 'invariant'; |
| to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice | |
| stun: | |
| stun.l.google.com:19302, | |
| stun1.l.google.com:19302, | |
| stun2.l.google.com:19302, | |
| stun3.l.google.com:19302, | |
| stun4.l.google.com:19302, | |
| stun.ekiga.net, | |
| stun.ideasip.com, |
Wasavi is some sort of vim implementation for browser text fields.
Once installed go to https://play.golang.org, you can use INSERT or CTRL+ENTER to enter the vim mode. To quit use the usual vim commands.
Tips:
| /* Shadow 0dp */ | |
| box-shadow: none; | |
| /* Shadow 1dp */ | |
| box-shadow: 0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.20); | |
| /* Shadow 2dp */ | |
| box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.20); | |
| /* Shadow 3dp */ |