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
. |
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
'use strict'; | |
var problem52 = (function() { | |
var t = true; | |
var number = 1; | |
var sonPermutables = function(numero1, numero2) { | |
var theNumber1 = (numero1).toString().split('').sort(); | |
var theNumber2 = (numero2).toString().split('').sort(); | |
var length = theNumber1.length; |
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 req = require('request'); | |
var token = "CAACEdEose0cBALt29OZACfdSnS7NXBLwXsCjHihvZCMqgq1ELjMpPHGAvEhVUxpTsZBeaDnlUti3nP2jYpXR97KByMUDR9ZCZBaeTkyFeJxZBtSCXPdlrY2LANl8BIf88iCGdZB1MMZCY7S9RZCZBod4oVqDkltsXdjNSLzQgp18SzZCM6DV2kGe6kPZAKj2ZBlCIwfl6UA5OfARQ1QZDZD"; | |
req.get('https://graph.facebook.com/v2.4/1429287964027842/members?access_token=' + token, function(err, data) { | |
console.log(err) | |
var arr = JSON.parse(data.body).data; | |
arr.forEach(function(el, i) { | |
SendInvite(el.id) | |
}); | |
}); |
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
$file = "/var/www/migroupon/app/tmp/importcsv.csv"; | |
print_r($file); | |
$delimiter = empty($this->params['delimiter']) ? ";" : $this->params['delimiter']; | |
$enclosure = empty($this->params['enclosure']) ? '"' : $this->params['enclosure']; | |
$importCoupon = isset($this->params['import_coupon']); | |
$dealRun = true; | |
if (isset($this->params['dealRun'])) { | |
$dealRun = $this->params['dealRun'] == '1'; | |
} |
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 getAddressBulk($deal_id_arr) { | |
$args = func_get_args(); | |
$cachedData = cacheRead('DealsAddressBulk', $args); | |
if(!empty($cachedData)) { | |
if($cachedData == 'empty') { | |
return ''; | |
} else { | |
return $cachedData; | |
} |
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 gulp = require('gulp'), | |
concat = require('gulp-concat'), | |
replace = require('gulp-replace'), | |
uglify = require('gulp-uglify'); | |
gulp.src(['src/**/*.js', '!src/main.conf.js', '!src/**/*_test.js']) | |
.pipe(replace(/'use strict';/g, '')) | |
.pipe(replace(/define\s?\(\[.*\],\s?function\s?\(.*\)\s?\{/g, '')) | |
.pipe(replace(/\}\)\;\s?$/g, '')) | |
.pipe(concat('app.js')) |
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
<VirtualHost *:80> | |
ServerName myapp.localhost.com | |
DocumentRoot "/home/vagrant/projects/myapp/public" | |
<Directory "/home/vagrant/projects/myapp/public"> | |
AllowOverride all | |
</Directory> | |
</VirtualHost> |
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
<VirtualHost *:80> | |
ServerName myapp.localhost.com | |
DocumentRoot "/home/vagrant/projects/myapp/public" | |
<Directory "/home/vagrant/projects/myapp/public"> | |
AllowOverride all | |
</Directory> | |
</VirtualHost> |
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
<VirtualHost *:80> | |
ServerName myapp.localhost.com | |
DocumentRoot "/home/vagrant/projects/myapp/public" | |
<Directory "/home/vagrant/projects/myapp/public"> | |
AllowOverride all | |
</Directory> | |
</VirtualHost> |
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
<VirtualHost *:80> | |
ServerName myapp.localhost.com | |
DocumentRoot "/home/vagrant/projects/myapp/public" | |
<Directory "/home/vagrant/projects/myapp/public"> | |
AllowOverride all | |
</Directory> | |
</VirtualHost> |