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
#include <Adafruit_GPS.h> | |
#include <LiquidCrystal.h> | |
#define mySerial Serial | |
Adafruit_GPS GPS(&mySerial); | |
#define GPSECHO true | |
boolean usingInterrupt = false; | |
void useInterrupt(boolean); | |
// LiquidCrystal //lcd(12, 11, 10, 9, 8, 7); |
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
{ | |
"_id": ObjectId("58064ab8681a0dc83cec174a"), | |
"inspected": false, | |
"timestamp": 1476807352, | |
"created_by": "7613ae35af373af3476214b6ee5328f2", | |
"created": new Date(1476807352179), | |
"user_id": "639", | |
"special_price": 0, | |
"link": "http://www.agestante.com.br/index.php?route=product/product&product_id=1557", | |
"available": { |
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
ALTER TABLE `winners`.`usuarios` | |
ADD COLUMN `cep_origem` VARCHAR(45) NULL AFTER `layout_loja`, | |
ADD COLUMN `descricao` VARCHAR(45) NULL AFTER `cep_origem`, | |
ADD COLUMN `token_pagseguro` VARCHAR(45) NULL AFTER `descricao`, | |
ADD COLUMN `loja_active` VARCHAR(45) NULL AFTER `token_pagseguro`; |
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 array_sort_bycolumn(&$array, $column, $dir = 'asc') { | |
$newarr = null; | |
$sortcol = array(); | |
foreach ($array as $a) { | |
$sortcol[$a[$column]][] = $a; | |
}; | |
ksort($sortcol); | |
foreach ($sortcol as $col) { | |
foreach ($col as $row) |
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 express = require('express'); | |
var router = express.Router(); | |
var Product = require('../models/product').Product; | |
var common = require('../aux/common'); | |
var url = require('url'); | |
var http = require('http'); | |
var sizeOf = require('image-size'); | |
var score = 0; | |
var verifyProductById = function(req, res) { |
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
/* | |
Web Client to consume Weather Underground web service | |
This sketch connects to a website (http://api.wunderground.com) | |
using an Arduino Ethernet shield and get data from site. | |
Circuit: | |
* Arduino MEGA 2560 R3 Board | |
* Ethernet shield attached to pins 10, 11, 12, 13 | |
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
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. | |
# 2. In your opencart directory rename htaccess.txt to .htaccess. | |
# For any support issues please visit: http://www.opencart.com | |
Options +FollowSymlinks | |
# Prevent Directoy listing | |
Options -Indexes |
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
/* | |
AngularJS v1.3.16 | |
(c) 2010-2014 Google, Inc. http://angularjs.org | |
License: MIT | |
*/ | |
(function(T,V,s){'use strict';function F(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.3.16/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=encodeURIComponent,e;e=arguments[a];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;c+=d(e)}return Error(c)}}function Sa(b){if(null==b||Ta(b))return!1;var a="length"in Object(b)&&b.length; | |
return b.nodeType===ma&&a?!0:O(b)||w(b)||0===a||"number"===typeof a&&0<a&&a-1 in b}function q(b,a,c){var d,e;if(b)if(E(b))for(d in b)"prototype"==d||"length"==d||"name"==d||b.hasOwnProperty&&!b.hasOwnProperty(d)||a.call(c,b[d],d,b);else if(w(b)||Sa(b)){var f="object"!==typeof b;d=0;for(e=b.length;d<e;d++)(f||d in b)&&a.call(c,b[d],d,b)}else if(b.forEach&&b.forEach!==q)b.forEach(a,c,b);else for(d in b)b.hasOwnProperty(d)&&a.cal |
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
#!/usr/bin/php | |
<?php | |
function isPrimo($n){ | |
if($n<5 || $n%2==0 || $n%3==0) | |
return ($n==2 || $n==3); | |
$maxP = sqrt($n)+2; | |
for($p=5; $p < $maxP; $p += 6) |
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
<div class="modal-dialog modal-sm"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
<h4 class="modal-title" id="mySmallModalLabel">Small modal</h4> | |
</div> | |
<div class="modal-body"> | |
... | |
</div> |