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
--- src/c/src/mt_adaptor.c 2014-10-30 13:40:02.000000000 +0100 | |
+++ src/c/src/mt_adaptor.c 2014-10-30 13:40:58.000000000 +0100 | |
@@ -483,25 +483,9 @@ | |
int32_t fetch_and_add(volatile int32_t* operand, int incr) | |
{ | |
#ifndef WIN32 | |
- int32_t result; | |
- asm __volatile__( | |
- "lock xaddl %0,%1\n" | |
- : "=r"(result), "=m"(*(int *)operand) |
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
process.stdout.isTTY; | |
require('child_process').spawn('ssh', 'localhost -t -- bash'.split(' '), {stdio: 'inherit'}); |
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
��l�High speed PHY - Ver 2.0.0 (COM-PHY-V20) | |
DDR3 Training Sequence - Ver 4.0.0 | |
DDR3 Training Sequence - Ended Successfully | |
Status = MV_OK | |
BootROM: Image checksum verification PASSED | |
U-Boot 2011.12 (Mar 23 2015 - 16:06:25) Marvell version: 2012_Q4.0p16 | |
Board: RD-AXP-CUSTOMER |
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
// npm install -g babel | |
// Then run with babel-node like this: | |
// babel-node --stage 2 index.js | |
import gitlab from 'gitlab'; | |
import request from 'request'; | |
import Promise from 'bluebird'; | |
let apiBaseUrl = 'http://v1cs-gitlab-dev.cloudapp.net'; | |
request.post = Promise.promisify(request.post, request); |
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
<!-- so it turns out that the object tag can act like an iframe | |
but the cool thing is you can nest object tags inside eachother for a fallback path. | |
what this means is you can "objectframe" a site.. and if it fails.. (site down, offline, whatever).. it'll use the next one. | |
so you can objectframe the live site and fallback to a screenshot. | |
or something. | |
demo at : http://jsfiddle.net/paul/CY2FQ/1/ | |
--> |
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
cd /path/to/platform/sites/domain.name | |
drush sql-query "SHOW TABLES" | tail -n +2 | xargs -I '{}' echo "ALTER TABLE {} ENGINE=INNODB;" > alter_table.sql | |
perl -p -i -e 's/(search_[a-z_]+ ENGINE=)INNODB/\1MYISAM/g' alter_table.sql | |
cat alter_table.sql | `drush sql-connect` |
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
/** | |
* Kit-Cat Clock | |
*/ | |
body { | |
/*margin: 200px;*/ | |
} | |
#wrapper, | |
#clock, | |
#wrapper2, |
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
# Examples | |
console.log NumberWrangler.format(123456.78) | |
console.log NumberWrangler.format("1234") | |
console.log NumberWrangler.formatDecimalComma("123456.78") | |
console.log NumberWrangler.parse("123,4 56.78") | |
console.log NumberWrangler.parseDecimalComma("123.4 56,78") | |
console.log NumberWrangler.countDecimals(1.2345) | |
# Requires jQuery: |
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
[{"name":"Standard AdBlocker","urlRegex":"^http://","urlExcludeRegex":"","enabled":false,"preserveDocWrite":false,"css":"","html":"","js":"","filters":[{"tags":"div,table","attribute":"id,class","value":"","valueRegex":"([-_]|\\b)(MarketGid(Composite)?\\d+|(adv?|ban(ner)?)\\d+x\\d+|y\\d+_direct\\d+)([-_]|\\b)"},{"tags":"div,table","attribute":"id,class","value":"","valueRegex":"^(top|left|right|bottom)[-_]?(ad|ban(n?er)?)s?\\d*(x\\d+)?$"},{"tags":"div,table","attribute":"id,class","value":"","valueRegex":"([-_]|\\b)(adv?|ban(n?er)?)[-_]?\\d+x\\d+[-_]?[a-z]*([-_]|\\b)"},{"tags":"div,table","attribute":"id,class","value":"","valueRegex":"([-_]|\\b)(bann?er|reklama|advertisement)s?[-_]?\\d*(x\\d+)?([-_]|\\b)"},{"tags":"div,table","attribute":"id,class","value":"","valueRegex":"([-_]|\\b)sidebar[-_]?ads?([-_]|\\b)"},{"tags":"","attribute":"id,class","value":"begun_table,baner,banner,ad,adv,reklama,google_companion_ad_div,google_ads_site,Advertisement,adBar,adBox","valueRegex":""},{"tags":"div","attribute":"id","v |
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 request = require('request'); | |
var fs = require('fs'); | |
var gm = require('gm'); | |
gm(request('http://image.blingee.com/images18/content/output/000/000/000/6d0/652887372_1455186.gif'), 'brabra.png') | |
.resize(240, 240) | |
.write('doodle2.png', function (err) { | |
if (!err) console.log('done'); | |
console.log(err); |
OlderNewer