By resources
sessions
list-sessions ls -- List sessions managed by server
new-session new -- Create a new session
| <?php | |
| Log::info("something really interesting happened", ['extra' => 'information', 'about' => 'anything' ]); |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "os" | |
| ) | |
| var path = "/Users/novalagung/Documents/temp/test.txt" |
| // Usage: | |
| // Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
| // then use as follows: | |
| // | |
| // query(term | [term, term, ...], term | [term, term, ...], ...) | |
| // | |
| // When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
| // | |
| // Term is of the format: | |
| // ((-)text/RegExp) ( '-' means negation ) |
| WITH RECURSIVE | |
| x(i) AS ( VALUES (0) | |
| UNION ALL SELECT i + 1 | |
| FROM x | |
| WHERE i < 101), | |
| Z(Ix, Iy, Cx, Cy, X, Y, I) AS ( | |
| SELECT | |
| Ix, | |
| Iy, | |
| X :: FLOAT, |
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| "time" | |
| ) | |
| func epoch_seconds(date time.Time) (sec float64) { | |
| /* Returns the number of seconds from the epoch to date. */ |
| * |
| #!/bin/sh | |
| SENTRY_KEY= | |
| SENTRY_SECRET= | |
| SENTRY_PROJECTID=1 | |
| SENTRY_HOST=sentry.example.com | |
| SCRIPT_ARGUMENTS=$@ | |
| capture_error() | |
| { |
| import aiohttp | |
| import asyncio | |
| async def get_body(url): | |
| response = await aiohttp.request('GET', url) | |
| raw_html = await response.read() | |
| return raw_html | |
| async def main(): | |
| # run them sequentially (but the loop can do other stuff in the meanwhile) |