Skip to content

Instantly share code, notes, and snippets.

@lexicalbits
lexicalbits / DBWhere.class.php
Created September 2, 2021 21:05
DBWhere: An old attempt at a PHP5 generic DB helper
<?php
/**
* DBWhere: a where clause constructor for use in platform-independant database libraries
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@lexicalbits
lexicalbits / animals.js
Created April 2, 2019 19:37
Javascript array of one-word animal names
var animalNames = ["Canidae","Felidae","Cat","Cattle","Dog","Donkey","Goat","Horse","Pig","Rabbit","Aardvark","Aardwolf","Albatross","Alligator","Alpaca","Amphibian","Anaconda","Angelfish","Anglerfish","Ant","Anteater","Antelope","Antlion","Ape","Aphid","Armadillo","Asp","Baboon","Badger","Bandicoot","Barnacle","Barracuda","Basilisk","Bass","Bat","Bear","Beaver","Bedbug","Bee","Beetle","Bird","Bison","Blackbird","Boa","Boar","Bobcat","Bobolink","Bonobo","Booby","Bovid","Bug","Butterfly","Buzzard","Camel","Canid","Capybara","Cardinal","Caribou","Carp","Cat","Catshark","Caterpillar","Catfish","Cattle","Centipede","Cephalopod","Chameleon","Cheetah","Chickadee","Chicken","Chimpanzee","Chinchilla","Chipmunk","Clam","Clownfish","Cobra","Cockroach","Cod","Condor","Constrictor","Coral","Cougar","Cow","Coyote","Crab","Crane","Crawdad","Crayfish","Cricket","Crocodile","Crow","Cuckoo","Cicada","Damselfly","Deer","Dingo","Dinosaur","Dog","Dolphin","Donkey","Dormouse","Dove","Dragonfly","Dragon","Duck","Eagle","Earthworm"
@lexicalbits
lexicalbits / README.md
Created February 11, 2016 22:01
Dropbox to Google Photos

App release: Dropbox to Google Photos

One of the exciting features we've added since our alpha release is the ability to manage files in your Dexter Apps. In order to demonstrate this useful new system, we're launching a simple new App that will let you copy all the photos inside a Dropbox folder into a Google Photos album.

Anatomy of the App

[screenshot]
@lexicalbits
lexicalbits / index.js
Created October 8, 2015 18:47
Tutorial: RSS Module
var request = require('request'),
FeedParser = require('feedparser'),
_ = require('lodash');
module.exports = {
run: function(step, dexter) {
var url = step.input('url').first(),
filter = step.input('filter').first(),
self = this;
if(!url) {
this.log('No url provided, returing to App');
<?php
require('vendor/autoload.php');
$cfg = require('cfg.php'); //returns ['username'=>'???', 'password'=>'???']
$to = 'sgtest_to@mailinator.com';
$cc = 'sgtest_cc@mailinator.com';
$bcc = 'sgtest_bcc@mailinator.com';
$sg = new SendGrid($cfg['username'], $cfg['password']);
$m = (new SendGrid\Email())
->addTo($to)
->addCc($cc)