See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| <!-- i have to warn you, this code SUCKS! i DO NOT recommend using this code, but you can if you want --> | |
| <div style="width:calc(442px + 28px * 2); outline:1px solid #232323; border-radius:8px;position: absolute;top:0;left:0;translate:calc(50vw - 50%) calc(50vh - 50%); box-sizing: border-box;container-type: size;height:600px;contain:strict"> | |
| <div style="overflow: clip;contain:strict;width:100%;height:100%;position:absolute"> | |
| <div style="padding:28px;display: flex;height:100%;box-sizing:border-box;flex-direction: column;align-items: center;justify-content: center;"> | |
| <svg class="nv-block sm:nv-hidden nv-h-6 nv-w-auto" style="width:100px;margin-top:2px" viewBox="0 0 1230.574 519.774" xmlns="http://www.w3.org/2000/svg" aria-label="Cloudflare"><path d="m784.025 512.011 5.872-20.311c6.998-24.169 4.394-46.511-7.349-62.926-10.801-15.122-28.804-24.022-50.666-25.056l-414.114-5.281c-2.788-.147-5.096-1.403-6.518-3.471-1.44-2.123-1.773-4.856-.886-7.478 1.366-4.08 5.41-7.164 9.62-7.349l417.954-5.299c49.576-2.271 103.2 |
| console.hex = (d) => console.log((Object(d).buffer instanceof ArrayBuffer ? new Uint8Array(d.buffer) : | |
| typeof d === 'string' ? (new TextEncoder('utf-8')).encode(d) : | |
| new Uint8ClampedArray(d)).reduce((p, c, i, a) => p + (i % 16 === 0 ? i.toString(16).padStart(6, 0) + ' ' : ' ') + | |
| c.toString(16).padStart(2, 0) + (i === a.length - 1 || i % 16 === 15 ? | |
| ' '.repeat((15 - i % 16) * 3) + Array.from(a).splice(i - i % 16, 16).reduce((r, v) => | |
| r + (v > 31 && v < 127 || v > 159 ? String.fromCharCode(v) : '.'), ' ') + '\n' : ''), '')); |
| -- Levenshtein function | |
| -- Source: https://openquery.com.au/blog/levenshtein-mysql-stored-function | |
| -- Levenshtein reference: http://en.wikipedia.org/wiki/Levenshtein_distance | |
| -- Arjen note: because the levenshtein value is encoded in a byte array, distance cannot exceed 255; | |
| -- thus the maximum string length this implementation can handle is also limited to 255 characters. | |
| DELIMITER $$ | |
| DROP FUNCTION IF EXISTS LEVENSHTEIN $$ | |
| CREATE FUNCTION LEVENSHTEIN(s1 VARCHAR(255) CHARACTER SET utf8, s2 VARCHAR(255) CHARACTER SET utf8) |
| #!/boot/bzImage | |
| # Linux kernel userspace initialization code, translated to bash | |
| # (Minus floppy disk handling, because seriously, it's 2017.) | |
| # Not 100% accurate, but gives you a good idea of how kernel init works | |
| # GPLv2, Copyright 2017 Hector Martin <[email protected]> | |
| # Based on Linux 4.10-rc2. | |
| # Note: pretend chroot is a builtin and affects the current process | |
| # Note: kernel actually uses major/minor device numbers instead of device name |
| Levs-MacBook-Pro-2:~ levlaz$ gem install rails -v 4.2.3 | |
| Fetching: rack-1.6.4.gem (100%) | |
| Successfully installed rack-1.6.4 | |
| Fetching: rack-test-0.6.3.gem (100%) | |
| Successfully installed rack-test-0.6.3 | |
| Building native extensions. This could take a while... | |
| ERROR: Error installing rails: | |
| ERROR: Failed to build gem native extension. | |
| current directory: /Users/levlaz/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.8/ext/nokogiri |
Ruby has heroes. Demigods who show us how to write better code. Turns out: they're just ordinary developers! This is the story of how I discovered that by becoming Ruby-famous. In the process, I learned our hero culture is toxic.
Want to keep Ruby weird? Stop listening to us (right after my talk).
| curl --include \ | |
| --no-buffer \ | |
| --header "Connection: Upgrade" \ | |
| --header "Upgrade: websocket" \ | |
| --header "Host: example.com:80" \ | |
| --header "Origin: http://example.com:80" \ | |
| --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \ | |
| --header "Sec-WebSocket-Version: 13" \ | |
| http://example.com:80/ |
| /* | |
| from @rem | |
| https://twitter.com/rem/status/729628084115247104 | |
| */ | |
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @-moz-document domain("twitter.com") { | |
| div[data-component-term="user-recommendations"], | |
| div[data-component-term="trends"], | |
| .promoted-tweet, |