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
| class RouteRecognizer | |
| include Singleton | |
| ROUTE_LIST = Rails.application.routes.routes.collect{|r| r.path.spec.to_s} | |
| REGEX_ROUT_LIST = ROUTE_LIST.map{|r| | |
| Regexp.new(r.gsub(/\:(.*)id/, "(\d+)").gsub("(.:format)", "")) | |
| } | |
| def self.is_route?(path) | |
| REGEX_ROUT_LIST.each do |regex| |
| 'use strict'; | |
| var fs = require('fs'); | |
| var ReactTools = require('react-tools'); | |
| var fn = module.exports = function () { | |
| require.extensions['.js'] = function (module, filename) { | |
| module._compile( | |
| ReactTools.transform( | |
| fs.readFileSync(filename, 'utf8'), | |
| {stripTypes: true, harmony: true}), |
| /** | |
| * @author Juliano Castilho <julianocomg@gmail.com> | |
| */ | |
| var React = require('react'); | |
| var AffixWrapper = React.createClass({ | |
| /** | |
| * @type {Object} | |
| */ | |
| propTypes: { |
| { | |
| {I have|I’ve} been {surfing|browsing} online more than {three|3|2|4} hours today, yet | |
| I never found any interesting article like yours. {It’s|It is} | |
| pretty worth enough for me. {In my opinion|Personally|In my view}, | |
| if all {webmasters|site owners|website owners|web owners} and bloggers made good content as you did, the {internet|net|web} will be {much more|a lot more} useful than ever before.| | |
| I {couldn’t|could not} {resist|refrain from} commenting. | |
| {Very well|Perfectly|Well|Exceptionally well} written!| | |
| {I will|I’ll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} as I {can not|can’t} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. | |
| Do {you have|you’ve} any? {Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may | |
| just|may|could} subscribe. Thanks.| |
| package com.mallo64.dataflow | |
| import com.google.api.client.json.GenericJson; | |
| import com.google.api.services.bigquery.model.TableCell; | |
| import com.google.api.services.bigquery.model.TableFieldSchema; | |
| import com.google.api.services.bigquery.model.TableRow; | |
| import com.google.api.services.bigquery.model.TableSchema; | |
| import com.google.cloud.dataflow.sdk.transforms.DoFn; | |
| import org.apache.avro.Schema; | |
| import org.apache.avro.specific.SpecificRecord; |
| #!/bin/bash -eux | |
| // set $DATADOGKEY to your API key | |
| DATE=$(date +%s) | |
| HOSTNAME=`hostname` | |
| cat /proc/net/sockstat | grep TCP | cut -d":" -f2 |sed 's/^ //g' | awk '{print $1, $2"\n"$3, $4"\n"$5,$6"\n"$7,$8"\n"$9,$10}' > /tmp/stats.tmp | |
| while read LINE; do | |
| METRIC=$(echo $LINE | cut -d" " -f1) | |
| VALUE=$(echo $LINE | cut -d" " -f2) | |
| curl -X POST -H "Content-type: application/json" \ |
This script enables Ninja-powered builds in CLion IDE by wrapping around CMake, which it uses. See my blog post for details.
This script is provided AS IS with no guarantees given or responsibilities taken by the author. This script relies on undocumented features of CLion IDE and may lead to instability of build and/or IDE. Use it on your own risk under WTFPL terms.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Draft • Decorators</title> | |
| <link rel="stylesheet" href="../../dist/Draft.css" /> | |
| </head> | |
| <body> | |
| <div id="target"></div> | |
| <script src="../../node_modules/react/dist/react.js"></script> |