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 server = require("./server"); | |
var router = require("./router"); | |
var requestHandlers = require("./requestHandlers"); | |
var handle = {} | |
handle["/"] = requestHandlers.start1; | |
handle["/start1"] = requestHandlers.start1; | |
handle["/upload1"] = requestHandlers.upload1; | |
handle["/start2"] = requestHandlers.start2; | |
handle["/upload2"] = requestHandlers.upload2; |
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 oop = require('oop'); | |
var EventEmitter = require('events').EventEmitter; | |
var util = require('util'); | |
//console.dir(oop); doesnt have inherits method? | |
function KitchenTimer(properties) { | |
this._interval = null; | |
this._timeout = null; | |
this._minutes = null; |
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 http = require('http') | |
var MyConstructor = require('./myconstructor') | |
http.createServer(function(request, response) { | |
var c = new MyConstructor(); | |
c.on('data', function(data) { | |
console.log(data); | |
}); | |
c.on('end', function(){ console.log('end'); } ); |
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
// ==UserScript== | |
// @name Block LibertyBaller Trolls (aka the HellzBellz1970 blocker) | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author armyofda12mnkeys aka persianninja | |
// @include http://www.libertyballers.com/* | |
// @include http://libertyballers.com/* | |
// @include https://www.libertyballers.com/* | |
// @include https://libertyballers.com/* |
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
DB::table('tasks')->insert( | |
[ | |
'name' => 'TestTaskJob1', | |
'command_name' => 'command:testtaskjob1', | |
'number_of_params' => 2 | |
],[ | |
'name' => 'TestTaskJob2', | |
'command_name' => 'command:testtaskjob2', | |
'number_of_params' => 3 | |
] |
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
$data = SomeModel:join('table2', 'column1', 'column2') | |
->join('table3', 'column1', 'column2') | |
->where table1.some_column = 'x' | |
->where table2.some_column = 'y' | |
->where table3.some_column = 'z' | |
->orderBy('table2.score') | |
->select('column1,column2,column3') | |
->distinct(); | |
When i do a ->toSql() and review the query i see it includes deleted rows of table 2 or table 3 so i have to explicitly remove with something like this: |
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
/sda1 (ntfs Windows), | |
/sda2 (fat32 Windows boot/esp drive), | |
/sda3 (that other special partition Windows creates labeled msftres). | |
/sda4 (linux /boot), | |
/sda6 (linux /home), | |
/sda7 (linux /) | |
/sda5 (linux swap space), |
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
"require-dev": { | |
"fzaninotto/faker": "~1.4", | |
"krlove/eloquent-model-generator": "^1.2", | |
"mockery/mockery": "0.9.*", | |
"phpunit/phpunit": "~5.7", | |
"xethron/migrations-generator": "^2.0", | |
"orangehill/iseed": "dev-master" | |
}, |
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
[28-Mar-2018 14:49:44 America/New_York] Error: Call to a member function getRequestTime() on null in /app/site/core/lib/Drupal/Core/Entity/ContentEntityForm.php on line 401 #0 /app/site/core/lib/Drupal/Core/Entity/ContentEntityForm.php(148): Drupal\Core\Entity\ContentEntityForm->updateChangedTime(Object(Drupal\app_messaging\Entity\AppMessage)) | |
#1 [internal function]: Drupal\Core\Entity\ContentEntityForm->submitForm(Array, Object(Drupal\Core\Form\FormState)) | |
#2 /app/site/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array) | |
#3 /app/site/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) | |
#4 /app/site/core/lib/Drupal/Core/Form/FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) | |
#5 /app/site/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('app_message_add...', Array, Object(Drupal\Core\For |
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 /var/www/acurian/reward4good/releases/1/site/app/console cache:warmup --no-interaction --env=prod --no-debug | |
// Clearing the cache for the dev environment with debug true | |
[Symfony\Component\Config\Exception\FileLoaderLoadException] | |
Upload path not valid in /var/www/acurian/myapp/releases/1/site/app/config/. | |
(which is being imported from "/var/www/acurian/myapp/releases/1/site/app/config/routing.yml"). | |
OlderNewer