Expected: can see three lists of detail views. Actual: can only see the first one; inspecting the DOM reveals that all three of the nested list views have the same ID (in my case, view3)
View setuid.c
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
#include <stdlib.h> | |
#include <unistd.h> | |
int main(int argc, char* argv[]) { | |
uid_t uid = (uid_t) atoi(argv[1]); | |
setuid(uid); | |
execl("/bin/sh", "sh", (char*) 0); | |
return 1; | |
} |
View index.html
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
<!DOCTYPE html> | |
<script src="foam/core/bootFOAM.js"></script> | |
<link rel="stylesheet" href="foam/core/foam.css"> | |
<script> | |
MODEL({ | |
name: 'Widget', | |
properties: ['gizmo'], | |
}); |
View index.html
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
<!DOCTYPE html> | |
<script src="foam/core/bootFOAM.js"></script> | |
<link rel="stylesheet" href="foam/core/foam.css"> | |
<script> | |
MODEL({ | |
name: 'Gadget', | |
properties: ['id', 'inventor'], | |
}); |
View textblob-counter.diff
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
diff --git a/Source/core/rendering/TextPainter.cpp b/Source/core/rendering/TextPainter.cpp | |
index 3901813..4133ea0 100644 | |
--- a/Source/core/rendering/TextPainter.cpp | |
+++ b/Source/core/rendering/TextPainter.cpp | |
@@ -178,6 +178,8 @@ static bool graphicsContextAllowsTextBlobs(GraphicsContext* context) | |
return !context->strokeGradient() && !context->strokePattern() && !context->fillGradient() && !context->fillPattern(); | |
} | |
+static unsigned long g_totalBlobsPainted = 0; | |
+ |
View gist:255e8b820c7d64479af1
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
class TestFontSelector : public FontSelector { | |
public: | |
static PassRefPtr<TestFontSelector> create(const String& path) | |
{ | |
WebUnitTestSupport* unitTestSupport = Platform::current()->unitTestSupport(); | |
String filePath = unitTestSupport->webKitRootDir() + path; | |
RefPtr<SharedBuffer> fontBuffer = static_cast<PassRefPtr<SharedBuffer>>(unitTestSupport->readFromFile(filePath)); | |
return adoptRef(new TestFontSelector(FontCustomPlatformData::create(fontBuffer.get()))); | |
} |
View gist:815849
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
languages = { | |
"C": { | |
'main_file': "{bot}.c", | |
'nuke_globs': ["*.o", "{bot}"], | |
'compile': [ | |
System("gcc -O3 -c {file}", glob="*.c"), | |
System("gcc -O2 -lm -o {bot}", glob="*.o"), | |
], | |
'run': "./{bot}", | |
}, |
View gist:1057181
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
var f = function() {}; | |
f.prototype.food = { apples: 0, bananas: 0 }; | |
var f1 = new f(); | |
f1.food.apples++; | |
var f2 = new f(); | |
console.log(f2.food.apples); // 1 | |
This is because the food object is modified in-place, and both instances refer to the same object. |
View gist:1066483
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.js | |
exports.message = 'hello world!'; | |
exports.b = require('./b'); | |
// b.js | |
var a = require('./a'); | |
module.exports = function() { return a.message; } |
View gist:1067452
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
var http = require('http'), | |
qs = require('querystring'); | |
var body = qs.stringify({ method: 'system.connect' }); | |
var options = { | |
host: 'www.goworkit.com', | |
port: 80, | |
path: '/services/json/', | |
method: 'POST', | |
headers: { |
OlderNewer