(function (d) {
var w = d.documentElement.offsetWidth,
t = d.createTreeWalker(d.body, NodeFilter.SHOW_ELEMENT),
b;
while (t.nextNode()) {
b = t.currentNode.getBoundingClientRect();
if (b.right > w || b.left < 0) {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- show running queries (pre 9.2) | |
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(query_start, clock_timestamp()), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
Presentational/Container have long been suggested as terms to describe two different classes of React components. However I think these terms are a bit deceptive, and don't accurately represent the differences between them:
- can "contain" other components, thus they also act as containers
- not concerned merely with "presentation" (in the same way that CSS is)
- do more than simply "contain" other components. Containing other components is not what makes them unique
- have an active role in accessing and mutating the state of your application. This is what differentiates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// JSHint Settings config | |
// See http://www.jshint.com/options/ for a full description of these (and some more) options. | |
// | |
// Comments are used liberally, even though they are not valid inside JSON. Make sure | |
// they are stripped out before running JSON.parse on this file. | |
// JSHint Running | |
"passfail" : false, // Stop on first error if this is true. | |
"maxerr" : 100, // Maximum errors before stopping. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/public/js/artist_libs/redactor.js | |
+++ b/public/js/artist_libs/redactor.js | |
@@ -2993,7 +2993,10 @@ var RLANG = { | |
// Success | |
if (this.uploadOptions.success) | |
{ | |
- this.uploadOptions.success(d.body.innerHTML); | |
+ // Remove bizarre <pre> tag wrappers around our json data: | |
+ var rawString = d.body.innerHTML; | |
+ var jsonString = rawString.match(/\{.*\}/)[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Syntax highlighting for obloq blocks. This is pretty experimental, and I can only get it | |
" to work with MacVim.app so far (doesn't work with command-line vim). It doesn't yet | |
" work for every file (not sure why). It's also probably really terrible vimscript. | |
" | |
" Supports: | |
" * mustache templates (highlighted as html) | |
" * stylus (highlighted as CSS) | |
" * javascript (.js and .sjs blocks) | |
" | |
" Drop the following into your .vimrc and restart MacVim.app: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This user stylesheet fixes most of my gripes with the new Google Reader UI. | |
* I'm activating it using the "Stylish" Chrome extension [1], which I believe is also available on Firefox. | |
* For other browsers, use any method that lets you assign custom styles for certain sites. | |
/* | |
/* Home page */ | |
#team-messages { | |
margin-top:5em; | |
} |
- 4 wrapped packages of soba noodles. There are usually 3 in a big package
- 1/2 cucumber
- 1 red pepper
- 3 medium carrots
- 2/3 cup chopped cilantro
- 2/3 cup chopped thai basil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Navigating between buffers: | |
map! <C-k> <esc>:bp<CR> | |
map <C-k> :bp<CR> | |
map! <C-l> <esc>:bn<CR> | |
map <C-l> :bn<CR> |
Rich Hickey • 3 years ago
Sorry, I have to disagree with the entire premise here.
A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.
Mastery comes from a combination of at least several of the following:
NewerOlder