I want to make a shopify theme using react.
You have a bunch of template files that have access to global server-side variables with liquid e.g. {{ product.title }}. Think wordpress or any other theme-based system.
/theme
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| // Placeholder @mixin for Sass | |
| // | |
| // A mixin to style placeholders in HTML5 form elements. | |
| // Includes also a .placeholder class to be used with a polyfill e.g. | |
| // https://github.com/mathiasbynens/jquery-placeholder | |
| // Requires Sass 3.2. | |
| // | |
| // Example usage (.scss): | |
| // | |
| // input { |
| window.AudioContext = window.AudioContext || window.webkitAudioContext; | |
| navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia; | |
| window.addEventListener('load', init, false); | |
| function init () { | |
| try { | |
| record(new AudioContext()); | |
| } | |
| catch (e) { |
| var gulp = require('gulp'); | |
| var myTransform = require('./myTransform'); | |
| gulp.task('foobar', function (){ | |
| return gulp.src("foobar.js") | |
| .pipe(myTransform()) | |
| .pipe(gulp.dest('.')); | |
| }); |
9.15
Keynote #1 Audio and the Web - Chris Wilson
###Session Moderator: Raphaël Troncy
10.30
Building a Collaborative Digital Audio Workstation Based on the Web Audio API - Jan Monschke
| // takes a {} object and returns a FormData object | |
| var objectToFormData = function(obj, form, namespace) { | |
| var fd = form || new FormData(); | |
| var formKey; | |
| for(var property in obj) { | |
| if(obj.hasOwnProperty(property)) { | |
| if(namespace) { |
| # Adding include/exclude rules to CQ/AEM package filters through cURL. | |
| # Through a simple search, you will find numerous lists of CQ/AEM cURL commands. | |
| # However, I haven't seen an example of adding rules to package filters. The | |
| # JSON "rules" key takes an array value. You can leave the array empty if you | |
| # don't need to include any rules. The array is of JSON objects with a | |
| # "modifier" key and value of "include" or "exclude", and a "pattern" key with | |
| # your path or regular expression as the value. | |
| # create package |
| const arr1 = [1,2,3] | |
| const arr2 = [4,5,6] | |
| const arr3 = [...arr1, ...arr2] //arr3 ==> [1,2,3,4,5,6] |
| <?php | |
| /* | |
| Plugin Name: Deep Thoughts Functionality | |
| Description: API Modifications for my Deep Thoughts React Native app. | |
| Author: Jeffrey Gould | |
| Version: 0.1 | |
| Author URI: http://jrgould.com | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |