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 App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
/** | |
* If the incoming request is an OPTIONS request | |
* we will register a handler for the requested route | |
*/ | |
class CatchAllOptionsRequestsProvider extends ServiceProvider { |
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
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"defaultParams": false, // enable default function parameters | |
"forOf": false, // enable for-of loops | |
"generators": false, // enable generators | |
"objectLiteralComputedProperties": false, // enable computed object literal property names |
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
############################################################################### | |
## Monit control file | |
############################################################################### | |
## | |
## Comments begin with a '#' and extend through the end of the line. Keywords | |
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'. | |
## | |
## Below you will find examples of some frequently used statements. For | |
## information about the control file, a complete list of statements and | |
## options please have a look in the monit manual. |
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 | |
# replace PATH_TO_BUILD, USERNAME, PASSWORD and TITLE_EXAMPLE | |
$zipname = 'PATH_TO_BUILD/build.zip'; | |
$data = ['file' => new CurlFile($zipname), | |
'data' => json_encode(['title' => 'TITLE_EXAMPLE' ,'create_method' => 'file']) | |
]; | |
$myusername = 'USERNAME'; |
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 | |
# CONSTANTS | |
$bitbucketUsername = 'BITBUCKET_USERNAME'; | |
$bitbucketPassword = 'BITBUCKET_PASSWORD'; | |
$zipname = "build.zip"; | |
$homeDirectory = "/Users/development2/"; | |
$phonegapUsername = 'PHONEGAP_USERNAME'; | |
$phonegapPassword = 'PHONEGAP_PASSWORD'; |
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
<preference name="android-build-tool" value="gradle" /> | |
<plugin name="cordova-plugin-whitelist" source="npm" spec="1.2.1" /> | |
<plugin name="cordova-plugin-device" source="npm" spec="1.1.1" /> | |
<plugin name="cordova-plugin-inappbrowser" source="npm" spec="1.3.0" /> | |
<plugin name="cordova-plugin-network-information" source="npm" spec="1.2.0" /> | |
<plugin name="cordova-plugin-splashscreen" source="npm" spec="3.2.0"/> | |
<plugin name="cordova-plugin-camera" source="npm" spec="2.1.0" /> | |
<plugin name="pushwoosh-cordova-plugin" source="npm" spec="4.2.0" /> | |
<plugin name="cordova-plugin-geolocation" source="npm" spec="2.1.0" /> |
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
// flightplan.js | |
var plan = require('flightplan'); | |
/** | |
* Remote configuration for "production" | |
*/ | |
plan.target('production', { | |
host: 'example.com', | |
username: 'someuser', | |
password: 'somepassword', |
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
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# | |
# Om nom nom cookies | |
# | |
add_header 'Access-Control-Allow-Credentials' 'true'; |
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
angular.module('utils.filters', []) | |
.filter('removeAccents', removeAccents); | |
function removeAccents() { | |
return function (source) { | |
var accent = [ | |
/[\300-\306]/g, /[\340-\346]/g, // A, a | |
/[\310-\313]/g, /[\350-\353]/g, // E, e | |
/[\314-\317]/g, /[\354-\357]/g, // I, i | |
/[\322-\330]/g, /[\362-\370]/g, // O, o |
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
SELECT MAX(id) FROM "Tags"; | |
SELECT nextval('"Tags_id_seq"'); | |
SELECT setval('"Tags_id_seq"', COALESCE((SELECT MAX(id)+1 FROM "Tags"), 1), false); |