This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Facebook\FacebookSession; | |
| use Facebook\FacebookRequest; | |
| use Facebook\GraphUser; | |
| use Facebook\FacebookRequestException; | |
| FacebookSession::setDefaultApplication('YOUR_APP_ID','YOUR_APP_SECRET'); | |
| // Use one of the helper classes to get a FacebookSession object. | |
| // FacebookRedirectLoginHelper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) | |
| Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip) | |
| Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip) | |
| Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip) | |
| Google Apps for Android 4.1 (https://www.androidfilehost.com/?fid=22979706399755082 - gapps-jb-20121011-signed.zip) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var script = document.createElement("script"); | |
| script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"); | |
| script.addEventListener('load', function() { | |
| var script = document.createElement("script"); | |
| document.body.appendChild(script); | |
| }, false); | |
| document.body.appendChild(script); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { PropTypes } from 'react' | |
| import ReactDOM from 'react-dom' | |
| import { createStore,combineReducers,applyMiddleware } from 'redux' | |
| import { Provider, connect,thunk } from 'react-redux' | |
| import _ from 'lodash' | |
| // Main component. | |
| class Main extends React.Component { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react' | |
| import { render } from 'react-dom' | |
| import { createStore, bindActionCreators } from 'redux' | |
| import { connect, Provider } from 'react-redux' | |
| const increment = () => ({ type: 'increment' }) | |
| const counter = (state = 0, action) => { | |
| switch (action.type) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| 'use strict'; | |
| angular | |
| .module('myModule') | |
| .directive('myDirective', myDirective); | |
| const template = ` | |
| <div class="my-directive-template"> | |
| <h1>Using multi-line Strings for templates</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [mysqld_safe] | |
| nice = -15 | |
| [mysqld] | |
| max_binlog_size = 256M #max size for binlog before rolling | |
| expire_logs_days = 1 #binlog files older than this will be purged | |
| ## Per-Thread Buffers * (max_connections) = total per-thread mem usage | |
| thread_stack = 256K #default: 32bit: 192K, 64bit: 256K | |
| sort_buffer_size = 1M #default: 2M, larger may cause perf issues |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function asyncFunc(e) { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(() => resolve(e), e * 1000); | |
| }); | |
| } | |
| const arr = [1, 2, 3]; | |
| let final = []; | |
| function workMyCollection(arr) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Jobs; | |
| use Illuminate\Queue\InteractsWithQueue; | |
| use Illuminate\Redis\Database as Redis; | |
| class Foo extends Job | |
| { | |
| use InteractsWithQueue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'vendor/autoload.php'; | |
| require_once 'container.php'; | |
| $app = Container::getInstance(); | |
| $app->bind('database', function($app) { | |
| $database = new Illuminate\Database\Capsule\Manager($app); |
OlderNewer