I HAVE:
main -- A -- B
\
staging C -- D
\
feature E
Gemfile.lock | |
test.db* |
I HAVE:
main -- A -- B
\
staging C -- D
\
feature E
Given a database with two tables.
select * from users;
+----+------+
| id | name |
+----+------+
declare global { | |
namespace jest { | |
interface Matchers<R> { | |
toBeFasterThan(target: number): Promise<CustomMatcherResult>; | |
} | |
} | |
} |
#!/usr/bin/env ruby | |
# ws=open('/usr/share/dict/words').readlines.map(&:strip).select{|w|/^[a-z]{7}$/=~w};100.times{p ws.sample(6).join(' ')} | |
ws=open('/usr/share/dict/words').readlines.select {|w| | |
/^[a-z]{5,7}\b/ =~ w | |
}.map(&:strip) | |
def n | |
(rand() * 89 + 10).floor.to_s | |
end |
// npm install; npm start | |
const http = require('http'), | |
faye = require('faye'); | |
const server = http.createServer(), | |
bayeux = new faye.NodeAdapter({mount: '/signal', timeout: 45}); | |
bayeux.attach(server); | |
server.listen(8080); |
url: https://cat-fact.herokuapp.com/facts
code:
<div style="border: 1px solid black;padding: 5px;">
<h3 style="padding:0;margin:0">CAT FACTS</h3>
{% for fact in data %}
{{ fact.text }}
pieces you asked about:
// translate the 24 bit color from RGB to the actual
// order used by the LED wiring. GRB is the most common.
int colorWiring(int c) {
int red = (c & 0xFF0000) >> 16;
int green = (c & 0x00FF00) >> 8;
int blue = (c & 0x0000FF);
red = gammatable[red];
#!/usr/bin/env ruby | |
# | |
# Demo of the "severe typing lag" layout bug we found. | |
# | |
# Things that fix the lag: | |
# - set textarea width to a non-percentage value | |
# - set .container grid-template-rows: to anything other than `auto`, e.g., | |
# `100vh` or `100%` work; or remove the property | |
# - set .container height: to a fixed value or remove the property |
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Fontawesome 5! Get it here: https://fontawesome.com/how-to-use/on-the-web/setup/hosting-font-awesome-yourself --> | |
<link rel="stylesheet" href="css/all.min.css" /> | |
<style> | |
body { | |
background: rgba(0, 0, 0); | |
color: #ffffff; | |
font-size: 16px; |