Skip to content

Instantly share code, notes, and snippets.

View dylanbathurst's full-sized avatar

Dylan Bathurst dylanbathurst

View GitHub Profile
@dylanbathurst
dylanbathurst / gist:1f15c80fbb79808f39f2b64a3f68657f
Created January 6, 2022 05:33
Bitcoind and C-Lightning tests using lnprototest
dylan@ace ~/lightning (master) $ cd ../lnprototest
dylan@ace ~/lnprototest (master) $ make check
/bin/sh: line 0: type: pytest-3: not found
/bin/sh: line 0: type: pytest3: not found
pytest tests
=================================================================== test session starts ===================================================================
platform darwin -- Python 3.9.9, pytest-6.1.2, py-1.11.0, pluggy-0.13.1
rootdir: /Users/dylan/lnprototest/tests, configfile: pytest.ini
plugins: forked-1.4.0, rerunfailures-9.1.1, flaky-3.7.0, xdist-2.2.1, timeout-1.4.2
collected 27 items
### Keybase proof
I hereby claim:
* I am dylanbathurst on github.
* I am dylanbathurst (https://keybase.io/dylanbathurst) on keybase.
* I have a public key ASAAHTcC98XFgVucSirf8-4rFrBPqBT_GScN8msSf0abQwo
To claim this, I am signing this object:
{
"events": [
{
"message": "fooooooo"
}
]
}
// Photos
app.get('/photos', function (req, res, next) {
var view = {};
fs.readdir('./public/img/slideshow', function(err, files) {
var re = /\.(gif|jpg|jpeg|tiff|png)$/i;
var list = files.filter(function (file) {
return re.test(file);
var id = 'div1';
function swapper (id) {
$(id).firstChild().fadeOut('slow', function () {
$(id).lastChild().fadeIn('slow', function () {
var last = $(id).lasChild();
$(id).prepend(last);
swapper('div2');
});
});
<style type="text/css">
.progress-bar {border-radius: 10px; width:300px; height:50px;}
</style>
<div class="progress-bar" style="background:url('/img/something.png') no-repeat ${VARIABLE_PERCENTAGE} top;"></div>
{header:{to:dylan@rumgr.com},meta:{user:{id:4e28c4576d3858673b001164,name:Alex,email:dylan@rumgr.com},actionCount:5,items:[{itemId:4fb158ad38f2e50000000016,actions:[{userId:4e28c4576d3858673b001164,itemId:4fb158ad38f2e50000000016,type:offers:counter,createdAt:2012-06-01T21:07:16.943Z,meta:{buyerId:4e28c4576d3858673b001164,offer:{userId:4fb158a638f2e50000000014,previousAmount:25,amount:30,message:null,userName:Ray},buyerName:Alex},_id:4fc92f04ec3bbb86fe000004}, {userId:4e28c4576d3858673b001164,itemId:4fb158ad38f2e50000000016,type:offers:counter,createdAt:2012-06-01T21:07:16.943Z,meta:{buyerId:4e28c4576d3858673b001164,offer:{userId:4fb158a638f2e50000000014,previousAmount:25,amount:30,message:null,userName:Ray},buyerName:Alex},_id:4fc92f04ec3bbb86fe000004}, {userId:4e28c4576d3858673b001164,itemId:4fb158ad38f2e50000000016,type:offers:counter,createdAt:2012-06-01T21:07:16.943Z,meta:{buyerId:4e28c4576d3858673b001164,offer:{userId:4fb158a638f2e50000000014,previousAmount:25,amount:30,message:null,userName:Ray},buyerN
var p = this.Promise();
var fieldsQuery = "";
if (this._fields && this._fields.length > 0){
fieldsQuery = "?fields=" + this.fields();
}
this.oauth.get(this.apiHost() + '/me' + fieldsQuery, accessToken, function (err, data) {
if (err)
return p.fail(err);
var oauthUser = JSON.parse(data);
p.fulfill(oauthUser);