I hereby claim:
- I am nuckchorris on github.
- I am nuck (https://keybase.io/nuck) on keybase.
- I have a public key ASDUSpEGtrP2v1-XRzkR1VzTLq5HcTZuxBwCPo8b-T8mJgo
To claim this, I am signing this object:
import { chmodSync as chmod, rmSync as rm } from 'node:fs'; | |
import { | |
temporaryDirectory as _temporaryDirectory, | |
temporaryFile as _temporaryFile, | |
} from 'tempy'; | |
function makeDisposableFilename(file: string) { | |
return Object.assign(new String(file), { | |
[Symbol.dispose]() { | |
chmod(file, 0o777); |
query { | |
findAnime(slug: "zombie-land-saga") { | |
id | |
titles { | |
canonical | |
localized | |
alternatives | |
} | |
bannerImage { | |
views(names: ["large"]) |
{ | |
"id": 1, | |
"title": { | |
"name": "Tower of God", | |
"slug": "tower-of-god", | |
"origin": "Korean" | |
}, | |
"related": [], | |
"alt_titles": [ | |
"Dievo Bokštas", |
I hereby claim:
To claim this, I am signing this object:
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
server { | |
listen 80; | |
# Proxy settings | |
proxy_redirect off; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real_IP $remote_addr; | |
proxy_set_header X-Forwarded_For $proxy_add_x_forwarded_for; | |
location /api/ { |
import Ember from 'ember'; | |
import ToriiAuthenticator from 'ember-simple-auth/authenticators/torii'; | |
export default ToriiAuthenticator.extend({ | |
torii: Ember.inject.service(), | |
authenticate() { | |
return this._super('github-oauth2', ...arguments); | |
} | |
}); |
mr | Marathi | |
---|---|---|
bs | Bosnian | |
ee_TG | Ewe (Togo) | |
ms | Malay | |
kam_KE | Kamba (Kenya) | |
mt | Maltese | |
ha | Hausa | |
es_HN | Spanish (Honduras) | |
ml_IN | Malayalam (India) | |
ro_MD | Romanian (Moldova) |
class AnimeResource < JSONAPI::Resource | |
# Specify the Chewy index class to utilize for search queries | |
index MediaIndex::Anime | |
# Queries are extracted from params[:filter] and used to form an ElasticSearch query | |
# If there are no query filters in the params, skips the entire ES query step | |
query :season, verify: -> (values, _ctx) { values.in? Anime::SEASONS } | |
query :year | |
# Filters will often be unnecessary, since most things Postgres can do, Elastic can too. | |
# However, any filters declared will be applied after internal conversion from ElasticSearch to ActiveModel |
<?php | |
include_once 'classes/db.class.php'; | |
/** | |
* This is an ORM. | |
* I may have gone a bit overboard on this final project. | |
* I just got tired of constantly dropping into raw SQL for mundane crap. | |
*/ | |
class Model { | |
private $_attributes = array(); |