Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| // | |
| // UIDeviceHardware.h | |
| // | |
| // Used to determine EXACT version of device software is running on. | |
| #import <Foundation/Foundation.h> | |
| @interface UIDeviceHardware : NSObject | |
| - (NSString *) platform; |
| /** | |
| * A diff utility that compares arrays and returns a list of added, removed, and updated items | |
| * | |
| * Returns an object with two methods: | |
| * diff: do a one-time diff of two arrays | |
| * watch: observe a variable on scope and report any changes to a callback | |
| * | |
| * Invoking the factory is done like so: | |
| * <code> | |
| * function(listDiff) { |
| // | |
| // CRUD API for RESTful services with URLs similar 'http://services.mysite.com/classes/Book'. | |
| // | |
| // e.g. parse.get( | |
| // "Book", | |
| // 123, | |
| // function(response){ console.log(response.toString());} | |
| // ); | |
| // | |
| services.factory('parse', function($rootScope, $http) { |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)This is a companion Gist for a talk that I gave at React Berlin in April 2015. The fine folks at Bitcrowd recorded all three of the evening's talks, so you can watch mine at https://www.youtube.com/watch?v=9ArhJiMGVDc.
Peter Magenheimer (@peterjmag)
I'm a front end developer at ResearchGate. And yes, we're hiring.
Salut à tou-te-s !
J'écris ce message pour expliquer brièvement comment procéder pour avoir une copie locale propre du projet sans utiliser des branches sur le dépôt principal.
Ca n'a pas tellement sa place dans le README car c'est limite un tuto git simplifié.
| import Parse from 'parse/node' | |
| import { afterEach, describe, it } from 'mocha' | |
| import chai from 'chai' | |
| import chaiAsPromised from 'chai-as-promised' | |
| import { resetParse, getAdminUser } from '../../../test/parseHelper' | |
| import errors from '../../utils/errors' | |
| chai.use(chaiAsPromised) | |
| const assert = chai.assert |
| #! /bin/bash | |
| # build the environment | |
| mkdir tessenv; cd tessenv | |
| TROOT=`pwd` | |
| mkdir $TROOT/stockfonts; mkdir $TROOT/build; mkdir $TROOT/build/eng | |
| echo "Environment built" | |
| # Get the stock english fonts from Google (old, but they work) | |
| cd $TROOT/stockfonts | |
| GET http://tesseract-ocr.googlecode.com/files/boxtiff-2.01.eng.tar.gz > boxtiff-2.01.eng.tar.gz |
| var AWS = require('aws-sdk'), | |
| fs = require('fs'); | |
| // For dev purposes only | |
| AWS.config.update({ accessKeyId: '...', secretAccessKey: '...' }); | |
| // Read in the file, convert it to base64, store to S3 | |
| fs.readFile('del.txt', function (err, data) { | |
| if (err) { throw err; } |
| /* | |
| Copyright (c) 2011 Andrei Mackenzie | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE |