Skip to content

Instantly share code, notes, and snippets.

@LeiZeng
LeiZeng / 0.1-export-plist.sh
Created June 17, 2017 18:11 — forked from Azuritul/0.1-export-plist.sh
Export Options Plist flag in xcodebuild
# Switch xcrun to leverage Xcode 7
# Note: This won't be needed once Xcode 7 is released
# and becomes the primary Xcode in use.
export DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer/
# Export Archive
xcrun xcodebuild -exportArchive -exportOptionsPlist exportPlist.plist -archivePath /path/to/app.xcarchive -exportPath /path/to/app.ipa
@LeiZeng
LeiZeng / TagPicker.js
Created June 27, 2016 07:21
TagPicker.js
import React from 'react';
import _ from 'lodash';
import {
withReducer,
withState,
} from 'recompose';
class Tag {
constructor(tag) {
import _ from 'lodash';
const wechatScript = '//res.wx.qq.com/open/js/jweixin-1.1.0.js';
export const loadSdk = () =>
new Promise((resolve) => {
require('scriptjs')(wechatScript, () => {
resolve(global.wx);
});
});
<?php
/**
* @file
* Demo module, Basic Ajax form submit (Ajax framework).
*/
/**
* Implements hook_menu().
*/