See https://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md
git clone depot_tools
add to path (not using ~ but $HOME) in .bash_profile
sudo sysctl kern.maxvnodes=$((512*1024))
| #app | |
| transition(name="page", :duration="1300") | |
| .page(:is="page" @change-page="onChangePage") | |
| script#start(type="text/x-template") | |
| .start | |
| .inner | |
| h1.title.enter-1 Page Transition Demo | |
| .button-wrapper.enter-2 | |
| button.button.button-start( |
| $ heroku addons:add heroku-postgresql:dev | |
| $ heroku addons:docs heroku-postgresql # ブラウザでドキュメント開く | |
| $ heroku pg:wait # データベースの準備ができるまで5分くらいかかる。その進捗ステータスを表示する | |
| $ heroku config | grep HEROKU_POSTGRESQL | |
| $ heroku pg:promote HEROKU_POSTGRESQL_COPPER_URL |
See https://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md
git clone depot_tools
add to path (not using ~ but $HOME) in .bash_profile
sudo sysctl kern.maxvnodes=$((512*1024))
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| ) | |
| func redirect(w http.ResponseWriter, r *http.Request) { | |
| http.Redirect(w, r, "http://www.google.com", 301) |
| // open console and run cmd+v every time | |
| var i = 0; | |
| var el = document.querySelectorAll('[aria-label="Unstar this repository"]'); | |
| function myLoop () { | |
| setTimeout(function () { | |
| el[i].click() | |
| i++; | |
| if (i < 30) { |
This re-styles your sublime text sidebar to be dark, it fits default Monokai theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on:
To use this bot:
ads_bot.py and requirements.txt.pip install -r requirements.txt to install the requirements.| import React from 'react'; | |
| import { shallow } from 'enzyme'; | |
| import MyComponent from '../src/my-component'; | |
| const wrapper = shallow(<MyComponent/>); | |
| describe('(Component) MyComponent', () => { | |
| it('renders without exploding', () => { | |
| expect(wrapper).to.have.length(1); | |
| }); |
| /*------------------------------------------------------------------------------ | |
| create two tables | |
| insert data into them | |
| run with: | |
| psql -f file.sql dbname | |
| ------------------------------------------------------------------------------*/ |