YARD CHEATSHEET http://yardoc.org
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.
/* @flow */ | |
declare module 'dynamoose' { | |
declare type Throughput = number | ({ | |
read: number; | |
} | { | |
write: number; | |
}); | |
declare type ThroughputConfig = { | |
throuput: Throughput; |
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.
psql -c "COPY tablename TO stdout DELIMITER ',' CSV HEADER" datasbasename -U username -h hostname -W > filename.csv |
I'm assuming you're on Linux or a Mac. If you aren't - Google is your friend. Fortunately there's a ton of documentation out there so you shouldn't have too much trouble setting things up.
# WINDOWS: Add domain user and put them in Domain Admins group | |
net user username password /ADD /DOMAIN | |
net group "Domain Admins" username /ADD /DOMAIN | |
# WINDOWS: Add local user and put them local Administrators group | |
net user username password /ADD | |
net localgroup Administrators username /ADD | |
# LINUX: Add a new user to linux and put them in the wheel group | |
useradd -G wheel username |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="background.js"></script> | |
</head> | |
<body> | |
<textarea id="sandbox"></textarea> | |
</body> |
Table.select("field1, created_at::timestamp::date").group("field1, created_at::timestamp::date") |
intercom_hash = Base64.encode64( | |
OpenSSL::HMAC.digest( | |
OpenSSL::Digest::Digest.new('sha256'), | |
IntercomRails.config.api_secret, | |
the_user_id_if_being_sent_otherwise_users_email_address | |
) | |
).strip() |