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 domains = [ | |
/* Default domains included */ | |
"aol.com", "att.net", "comcast.net", "facebook.com", "gmail.com", "gmx.com", "googlemail.com", | |
"google.com", "hotmail.com", "hotmail.co.uk", "mac.com", "me.com", "mail.com", "msn.com", | |
"live.com", "sbcglobal.net", "verizon.net", "yahoo.com", "yahoo.co.uk", | |
/* Other global domains */ | |
"email.com", "fastmail.fm", "games.com" /* AOL */, "gmx.net", "hush.com", "hushmail.com", "icloud.com", | |
"iname.com", "inbox.com", "lavabit.com", "love.com" /* AOL */, "outlook.com", "pobox.com", "protonmail.com", | |
"rocketmail.com" /* Yahoo */, "safe-mail.net", "wow.com" /* AOL */, "ygm.com" /* AOL */, |
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
/* | |
Hologram Demo - GSM Network Jumping | |
This example shows how to switch between carriers using a Hologram SIM. | |
Circuit: | |
* MKR NB 1500 board | |
* Antenna | |
* Hologram SIM card | |
Created 12 Dec 2018 | |
by Benstr | |
*/ |
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
{ | |
success: true, | |
limit: 100, | |
size: 5, | |
continues: false, | |
lastid: 430796983, | |
data: [ | |
{ | |
linkid: 387074, | |
record_id: 430817875, |
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
from Hologram.HologramCloud import HologramCloud | |
import logging | |
import base64 | |
#uncomment if you want to see debugging messages. | |
#not suggested for larger images | |
#logging.basicConfig(level=logging.DEBUG, format="%(levelname)s: %(message)s") | |
hologram = HologramCloud(dict(), authentication_type='totp', network='cellular') |
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
#include <SoftwareSerial.h> | |
int _MODEMSTATE = 1; // set state as available | |
int RESET_PIN = 10 //SIM800 reset connected to pin D10 | |
int TX_PIN = 7; | |
int RX_PIN = 8; | |
String _MESSAGEBUFFER = ""; | |
String _SERIALBUFFER = ""; | |
SoftwareSerial serialHologram(TX_PIN, RX_PIN); |
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
/* | |
Note: this code is a demo for how to use a gprs shield to send | |
an http request to a test website (using the Hologram APN). | |
To communicate with the Arduino via terminal, set | |
the outgoing baud rate to 19200, and set line endings to | |
carriage return. | |
Then, in order to initiate the demo http request, enter | |
'h' into the terminal at the top of the serial monitor. |
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
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
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
Template.blogList.onRendered( function () { | |
var self = this; | |
$('#summernote').summernote({ | |
height: 400, | |
maxHeight: 800, | |
minHeight: 250, | |
onImageUpload: function (files, editor, $editable) { | |
var file = files[0]; | |
var coll = ImageUpload.getImageCollection('imageUploadCollectionName'); | |
if (file) { |
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
function checkEmailAddress(emailAddress) { | |
check(emailAddress, String); | |
suffix = emailAddress.split('@')[1]; | |
if (suffix === "wcs.com") | |
{ return true } else { return false }; | |
}; | |
Accounts.validateNewUser(function (user) { | |
console.log(user); | |
if (checkEmailAddress(user.emails[0].address)) { |
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
ownerId: { | |
type: String, | |
regEx: /^[a-z0-9A-z .]{3,30}$/, | |
optional: true | |
}, | |
vetId: { | |
type: String, | |
regEx: /^[a-z0-9A-z .]{3,30}$/, | |
optional: true | |
}, |
NewerOlder