This file contains 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 ...; | |
use Closure; | |
use Auth; | |
use Debugbar; | |
class AdminDebugbarMiddleware { | |
/** | |
* Handle an incoming request. |
This file contains 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'; | |
const Wit = require('node-wit').Wit; | |
const interactive = require('node-wit').interactive; | |
const Cayenne = require('cayenne-mqtt'); | |
const accessToken = 'QRV6QVSA6L...'; | |
var cayenne_options = { | |
'clientId' : 'c1d7df70...', |
This file contains 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 m = require('mraa'); //require mraa | |
console.log('MRAA Version: ' + m.getVersion()); //write the mraa version to the console | |
var Cayenne = require('cayenne-mqtt'); | |
var myLed = new m.Gpio(60); //LED hooked up to digital pin 13 (or built in pin on Galileo Gen1 & Gen2) | |
myLed.dir(m.DIR_OUT); //set the gpio direction to output | |
var options = { | |
'clientId' : '', | |
'username' : '', |
This file contains 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\Modules\SunatRUC\Services; | |
use Input; | |
use Session; | |
use Sunra\PhpSimple\HtmlDomParser; | |
Use Debugbar; | |
class BusquedaRUCService { |
This file contains 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 Library: https://github.com/laurenceHR/Arduino-LiquidCrystal_I2C | |
// clone on ..\Program Files (x86)\Arduino\libraries\LiquidCrystal_I2C Folder | |
#include <LiquidCrystal.h> | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
LiquidCrystal_I2C lcd(0x27,16,2); //0x27 is the LCD Address | |
#define DS3231_I2C_ADDRESS 0x68 | |
byte decToBcd(byte val){ return( (val/10*16) + (val%10) ); } | |
byte bcdToDec(byte val){ return( (val/16*10) + (val%16) ); } |
This file contains 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 'vendor/autoload.php'; | |
use Illuminate\Database\Connectors\MySqlConnector; | |
//use Illuminate\Support\Facades\DB; | |
use Illuminate\Database\Connection; | |
use Illuminate\Database\MySqlConnection; | |
use Illuminate\Database\Schema\Grammars\MySqlGrammar; | |
$config = array( |