I hereby claim:
- I am vsvs on github.
- I am vsvs (https://keybase.io/vsvs) on keybase.
- I have a public key ASA1wm9wAJmhy2yKW9yFFOfsZveMoZV1RO2VyCHefOX1eQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
add_action('wp_enqueue_scripts', 'load_react'); | |
function load_react(){ | |
// if its not the react page with id 1400, terminate script | |
if(! is_page( 1400 ) ){ | |
return; | |
} | |
// wp enque args |
npm install -g create-react-app
create-react-app your-app-name
cd your-app-name
npm install --save-dev babel-core babel-loader babel-preset-env babel-preset-react css-loader style-loader html-webpack-plugin webpack webpack-dev-server |
- cmod 600 node.pem
- ssh -i node.pem ubuntu@ec2-54-213-144-182.us-west-2.compute.amazonaws.com
- sudo apt-get update
- sudo apt-get install libssl-dev g++ make
#Xcode Shortcuts
⌘R = runs compiler
⌘ + shift + K = clean compiler
⌘1 - ⌘7 = navigator shortcuts
⌘ + shift + O = opens find
⌘1 - ⌘7 = navigator shortcuts
/* | |
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} |