Major 2025 Update: PostgreSQL now recommends identity columns over serial types. Drizzle has fully embraced this change.
import { pgTable, integer, text, timestamp, varchar } from 'drizzle-orm/pg-core';
Major 2025 Update: PostgreSQL now recommends identity columns over serial types. Drizzle has fully embraced this change.
import { pgTable, integer, text, timestamp, varchar } from 'drizzle-orm/pg-core';
// composables/useEmitter.ts | |
export default function () { | |
const hooks = useNuxtApp().hooks; | |
return { | |
emit: hooks.callHook, | |
on: hooks.hook, | |
} | |
} |
// const axios = require('axios') | |
// Using Links API | |
generate: { | |
routes: function (callback) { | |
const token = `YOUR_TOKEN` | |
const version = 'published' | |
let cache_version = 0 |
User accounts on Twitter are commonly identified by screen name, which may be changed by operators when they take over an account, or have been sitting on an old account for a long time and want to transition it into malicious use.
User IDs, however, are permanent. There are several services out there that will try to find them for you but it seems like a bad idea to me, since you're alerting them to the fact that there's something interesting about this account. There's also plenty of bad advice that uses many long-since-abandoned Twitter API endpoints.
As of this writing (2018-02-18) you can view source and search for /profile_banners/
, which will show something like this:
.enhanced-mini-profile .mini-profile .profile-summary {
# INSTRUCTIONS | |
First, stop your current pipelines. For new pipelines: | |
1. Install autossh. (Debian: apt install autossh) | |
archivebot2 is running on a DigitalOcean CoreOS droplet. | |
On DigitalOcean, CoreOS droplets will restart to apply OS updates. | |
To deal with these restarts, you'll need some way to bring the SSH->Redis | |
tunnel back up automatically. autossh is pretty good at that. |
The Federal Aviation Administration is posting PDFs of the Section 333 exemptions that it grants, i.e. the exemptions for operators who want to fly drones commercially before the FAA finishes its rulemaking. A journalist wanted to look for exemptions granted to operators in a given U.S. state. But the FAA doesn't appear to have an easy-to-read data file to use and doesn't otherwise list exemptions by location of operator.
However, since their exemptions page is just one giant HTML table for listing the PDFs, we can just use wget to fetch all the PDFs, run pdftotext on each file, and then [grep](https://medium.com/@rualthanzauva/grep-was-a-private-command-of-m
RootsDev | |
https://github.com/rootsdev/roots-search (Chrome Plug-in / JavaScript) | |
https://github.com/rootsdev/familysearch-javascript-sdk | |
https://github.com/rootsdev/gofamilysearch (Go FamilySearch SDK) | |
https://github.com/rootsdev/polygenea (Java and D, Collaborative Research-centric Data Model) | |
https://github.com/rootsdev/familysearch-reference-client (JavaScript/Angular, Tree Client for FamilySearch API) | |
https://github.com/rootsdev/genealogy-search (Chrome Extension) | |
https://github.com/rootsdev/people-inspector (Chrome Extension - historical-data.org microdata reader) |
/** | |
* Changes value to past tense. | |
* Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc. | |
* http://jsfiddle.net/bryan_k/0xczme2r/ | |
* | |
* @param {String} value The value string. | |
*/ | |
Vue.filter('past-tense', function(value) { | |
// Slightly follows http://www.oxforddictionaries.com/us/words/verb-tenses-adding-ed-and-ing | |
var vowels = ['a', 'e', 'i', 'o', 'u']; |
module.exports = { | |
get: function (req, res) { | |
res.sendfile(req.path.substr(1)); | |
}, | |
_config: { | |
rest: false, | |
shortcuts: false | |
} | |
}; |