Apex Logs utilizes a purpose-built query language for searching and aggregating structured log events.
An Apex Log event requires the following properties:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the event. |
Apex Logs utilizes a purpose-built query language for searching and aggregating structured log events.
An Apex Log event requires the following properties:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the event. |
// A simple server for HTTPS and HTTP protocols. It implements these behaviors: | |
// | |
// • uses Let's Encrypt to acquire and automatically refresh HTTPS certificates | |
// | |
// • redirects HTTPS requests to canonical hosts, reverse proxies requests to internal backing servers | |
// | |
// • redirects all HTTP requests to HTTPS | |
// | |
// • gates certain endpoints with basic auth, using bcrypt-hashed passwords | |
// |
// https://blog.koley.in/2019/339-bytes-of-responsive-css | |
body { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; | |
line-height: 1.6; | |
color: #222; | |
max-width: 40rem; | |
padding: 2rem; | |
margin: auto; | |
background: #fafafa; |
class Worker | |
def self.start(num_threads:, queue_size:) | |
queue = SizedQueue.new(queue_size) | |
worker = new(num_threads: num_threads, queue: queue) | |
worker.spawn_threads | |
worker | |
end | |
def initialize(num_threads:, queue:) | |
@num_threads = num_threads |
const PASS = ['32']; // green | |
const FAIL = ['31', '1']; // red, bold | |
function logStyle(ansiEscapeCodes, text) { | |
console.log(`\x1b[${ansiEscapeCodes.join(';')}m${text}\x1b[0m`); | |
} | |
class Tester { | |
constructor() {} |
div, span { | |
box-sizing: border-box; | |
position: relative; | |
display: flex; | |
flex-direction: column; | |
align-items: stretch; | |
flex-shrink: 0; | |
align-content: flex-start; |
This gist will collects all issues we solved with Rails 5.2 and Webpacker
# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test
# ... | |
# https://github.com/exAspArk/batch-loader | |
gem 'batch-loader' |
#include <stdio.h> | |
#include <dirent.h> | |
int main (int argc, char *argv[ ]) | |
{ | |
DIR *dp; | |
struct dirent *dirp; | |
if (argc != 2) { | |
fprintf(stderr, "usage: ls directory_name\n"); |
var subPub = Object.seal({ | |
key: 0, | |
subscribers: {}, | |
subscribe: function(subscriber) { | |
this.subscribers[this.key] = subscriber; | |
return this.key++; | |
}, | |
publish: function(args) { | |
for (var sub in this.subscribers) { |