Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>test</title>
<style>
html, body, .page {
margin: 0;
padding: 0;
}
.page {
'use strict';
var page = require('webpage').create();
var system = require('system');
var address;
var output;
if (system.args.length < 3) {
console.log('Usage: rasterize.js [URL|filepath] filename');
phantom.exit(1);
diff --git a/example/src/components.js b/example/src/components.js
index 61a833c..5abdd2d 100644
--- a/example/src/components.js
+++ b/example/src/components.js
@@ -37,6 +37,14 @@ var WrapIntlComponent = React.createClass({
var Container = global.Container = React.createClass({
mixins: [ReactIntlMixin],
+ childContextTypes: {
+ country: React.PropTypes.string
@athibaud
athibaud / node-xcode_add_subproject_library.js
Last active December 20, 2015 11:19
show how to use the node-xcode methods added in https://github.com/joshfire/node-xcode/commit/c285d937750bf2c021e0877b0edad0883ad186cd to integrate 'subproject' libraries. this gist specifically showcases step 2 {1, 2, 3, 4} of https://github.com/ShareKit/ShareKit/wiki/Installing-sharekit
function installSharekit(cb) {
var myProj = xcode.project(pbxProjPath);
myProj.parse(function (err) {
if (err) {
logger.warn('installSharekit myProj.parse error', err);
cb(err);
}
var sharekitPath = 'ShareKit/ShareKit.xcodeproj';