A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
Drop in replace functions for setTimeout() & setInterval() that | |
make use of requestAnimationFrame() for performance where available | |
http://www.joelambert.co.uk | |
Copyright 2011, Joe Lambert. | |
Free to use under the MIT license. | |
http://www.opensource.org/licenses/mit-license.php |
Drop in replace functions for setTimeout() & setInterval() that | |
make use of requestAnimationFrame() for performance where available | |
http://www.joelambert.co.uk | |
Copyright 2011, Joe Lambert. | |
Free to use under the MIT license. | |
http://www.opensource.org/licenses/mit-license.php |
Original transcript: http://allisonrandal.com/2012/04/15/open-source-enlightenment/
這幾年來,我慢慢覺得,我們參與開源社群,就像是在一條道路上並肩而行:這不僅讓我們成為更好的程式設計者,也讓我們通過與人合作,而成為更好的人。
您可以將它想成一條修行之道,讓身而為人的我們能夠不斷成長。接下來,我想談談我對開源世界的個人觀點,希望能與您分享。
首先,人是一切開源專案的核心。程式碼是很重要,但最核心的永遠是人。
var ksa = require('ksana-simple-api'); | |
ksa.filter({db: 'jiangkangyur', q: 'a'}, function(err, items) { | |
console.log('items', items); | |
}); |
var ksa = require('ksana-simple-api'); | |
ksa.fetch({db: 'jiangkangyur', q: 'ཨ', uti: ['1.95a', '1.276a']}, function(err, rows) { | |
console.log('rows', rows); | |
})l |
const URL = 'https://api.dharma-treasure.org/kdbs/jiangkangyur/pbs/1-1-1b'; | |
let result = ''; | |
fetch(URL).then((res) => res.json()) | |
.then((json) => { | |
result = json; | |
console.log('inside', result); | |
}); |
#include <stdio.h> | |
#include <string.h> | |
int main () { | |
int ret; | |
FILE *fp; | |
char filename[] = "/home/user1/file.txt"; | |
fp = fopen(filename, "w"); |
#!/bin/bash | |
print_message() { | |
echo | |
echo "arguments are $0 $1 $2" | |
echo | |
} | |
print_message "first" "second" |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# Wi-Fi | |
auto wlp3s0 | |
iface wlp3s0 inet dhcp | |
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf |