View unblock_file.py
"""
Removes the NTFS file stream that indicates that a file has been
downloaded from the internet untrusted zone.
Requires clrtype.py library (see https://raw.githubusercontent.com/IronLanguages/main/master/Languages/IronPython/Samples/ClrType/clrtype.py).
"""
import sys
import os
import clr
import clrtype
View welcome.js
//Welcome message when a new room or 1:1 is spawned with the bot
flint.on('spawn', function(bot) {
flint.debug('new bot spawned in room: %s', bot.room.id);
//presents different messages based on room or 1:1
if(bot.isGroup){
bot.say("Hi! To get started just type @examplebot hello.");
return
}else{
bot.say("Hi! To get started just type hello.");
return
View fragment.xml
<w:p w14:paraId="72754A29" w14:textId="77777777" w:rsidR="00E76149" w:rsidRDefault="00E76149">
<w:pPr>
<w:pStyle w:val="TOC1"/>
<w:tabs>
<w:tab w:val="right" w:leader="dot" w:pos="9350"/>
</w:tabs>
<w:rPr>
<w:rFonts w:eastAsiaTheme="minorEastAsia"/>
<w:noProof/>
</w:rPr>
View ellipsis.js
(function ellipsis(str, charLimit) {
var result = [];
var letters = 0;
str.split().forEach(function(word, index) {
if (letters < charLimit) {result.push(word)}
letters += word.length;
});
console.log(result.join(' ') + '...');
})("Hero congressman calls out conservatives on racist abortion restrictions", 40);
View gist:387c60b22ca29342921fe769050b888c
### Keybase proof
I hereby claim:
* I am thelugal on github.
* I am thelugal (https://keybase.io/thelugal) on keybase.
* I have a public key whose fingerprint is 3D98 64B0 ABE5 4FDF 14D0 2359 C84F 9A4A BAFF 39A7
To claim this, I am signing this object:
View gist:0ddd7ee981184baa19c751f76df0d8e5
QueryType: SELECT
includeInferred=true
timeout=600000
SELECT ( VarNode(item) AS VarNode(item) ) ( VarNode(itemLabel) AS VarNode(itemLabel) )
JoinGroupNode {
StatementPatternNode(VarNode(item), ConstantNode(Vocab(6)[http://www.wikidata.org/prop/direct/P]:XSDUnsignedByte(31)), VarNode(--pp-anon-8e98f82b-b2f1-48c4-9659-261d1855fd27)[anonymous]) [scope=DEFAULT_CONTEXTS]
AST2BOpBase.estimatedCardinality=18953492
AST2BOpBase.originalIndex=POS
ArbitraryLengthPathNode(left=VarNode(--pp-anon-8e98f82b-b2f1-48c4-9659-261d1855fd27)[anonymous], right=ConstantNode(Vocab(2)[http://www.wikidata.org/entity/Q]:XSDUnsignedInt(1651051))) {
View gist:11962c6c4d61d18ff95cc06718823d7f
// \META-INF\resources\util\control\FileLocationControl.js
if (!sLocationType || (sLocationType === "0")) {
// Create Embedded link control(commands: DownLoad and UpLoad) and add in HBox
oInstance.LocationType="2";
oConstraint.getCommandsDefinition = undefined; // for create link without command, should be restored
oInstance.Location=window.location.origin+"/powerdesigner-web/EmbeddedFileServlet?id="+oInstance.RepositoryId;
oEditLink = util.ControlFactory.createLinkControl(oInstance, oFeature, bEditable, oPropertyDefinition, false, true);
oConstraint.getCommandsDefinition = oCommand; // Restore commandDefinition
if (bEditable) {
oEditLink.getContent().setWidth("100%");
View # scalapack - 2016-09-29_00-03-42.txt
Homebrew build logs for homebrew/science/scalapack on macOS 10.10.5
Build date: 2016-09-29 00:03:42
View gist:2cf9b9a476cee2fa3bb87746bbe0b779
QueryType: SELECT
includeInferred=true
timeout=600000
SELECT ( VarNode(item) AS VarNode(item) ) ( VarNode(itemLabel) AS VarNode(itemLabel) )
JoinGroupNode {
ArbitraryLengthPathNode(left=VarNode(--pp-anon-3f31de7b-6d30-47e1-8cd3-4402d949d842)[anonymous], right=ConstantNode(Vocab(2)[http://www.wikidata.org/entity/Q]:XSDUnsignedInt(1651051))) {
JoinGroupNode {
StatementPatternNode(VarNode(-tVarLeft-32e225be-feb4-4b01-9bc0-3aeab8718976)[anonymous], ConstantNode(Vocab(6)[http://www.wikidata.org/prop/direct/P]:XSDUnsignedShort(279)), VarNode(-tVarRight-d91d0867-abca-4e44-b396-d0fc55945bb9)[anonymous]) [scope=DEFAULT_CONTEXTS]
AST2BOpBase.estimatedCardinality=12
View export-opera-bookmarks
// Export Opera Bookmarks (Mac OS X)
// *In case you don't want to install an addon.*
//
// The next command should write the bookmarks to an HTML file.
//
// node export_opera_bookmarks.js
//
// Tested on Opera +40.0.
var BOOKMARKS_FILE = process.env['HOME'] + '/Library/Application\ Support/com.operasoftware.Opera/Bookmarks';