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
~/books | |
❯ ffprobe -hide_banner Feedback-good.m4b | |
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5638f2eb7ec0] stream 0, timescale not set | |
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Feedback-good.m4b': | |
Metadata: | |
major_brand : isom | |
minor_version : 512 | |
compatible_brands: iso2mp41M4A M4B | |
creation_time : 2020-10-30T20:01:56.000000Z | |
title : Feedback |
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
Core swap idea - node with id is present on both new and old document. | |
in isolation: | |
existing element: | |
```<ul id=messages> | |
<li> bar </li> | |
</ul>``` | |
New element: |
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
### Keybase proof | |
I hereby claim: | |
* I am gone on github. | |
* I am gone (https://keybase.io/gone) on keybase. | |
* I have a public key whose fingerprint is 3FE1 D875 3627 CAF3 502D 81E4 56DB C185 8EFC CDE6 | |
To claim this, I am signing this object: |
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
if page: | |
if page.login_required and not request.user.is_authenticated(): | |
return redirect_to_login(urlquote(request.get_full_path()), settings.LOGIN_URL) | |
if not page.has_view_permission(request): | |
return _handle_no_page(request, "$") | |
return func(request, *args, **kwargs) |
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
import base64 | |
import requests | |
import requests_oauthlib | |
TUMBLR_CONSUMER_KEY="UP4UIWi2OUAGVBzbpHMAuNYc3TYBWaR0RVQ4HBfBG3xqT9xmiR" | |
TUMBLR_CONSUMER_SECRET="Kxdch4r0VKCH7rDaMfgybAWnu1Yo8JAFa67prxMXCBIvzHgQmn" | |
TUMBLR_OAUTH_TOKEN="l4YrLmrR4TfrR7ACD1UEKLUYMxGMHJ9WEPS9UHjgCaoj0wOyGk" | |
TUMBLR_OAUTH_TOKEN_SECRET="vq8AytX1ws734DKfWfrNiJgW8dwBljjUIOiZoZM3A8i0hlbEAS" | |
auth = requests_oauthlib.OAuth1Session(TUMBLR_CONSUMER_KEY, |
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
import urllib2 | |
import json | |
import requests | |
from requests.auth import HTTPBasicAuth | |
import base64 | |
def get_all_vaults(): | |
url = "https://api.truevault.com/v1/vaults" | |
r = requests.get(url, auth=HTTPBasicAuth(TRUEVAULT_API_KEY, '')) |
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
someRoute.... | |
model: function(){ | |
return $.ajax("FOOBARBAZ").then(function(data){ | |
results = Ember.A() | |
for (i in data) { | |
results.push(NewObject(data[i])) | |
} | |
return reults | |
} |
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
import DS from 'ember-data'; | |
import FIXTURES from '../fixtures/condition'; | |
var Condition = DS.Model.extend({ | |
commonName: DS.attr("string"), | |
scientificName: DS.attr("string"), | |
description: DS.attr("string"), | |
percentMatch: DS.attr("integer"), | |
commonality: DS.attr("string"), | |
urgency: DS.attr("string"), |
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
import DS from 'ember-data'; | |
import FIXTURES from '../fixtures/FaciltyTypeCondition'; | |
var FacilityTypeCondition = DS.Model.extend({ | |
facilityType: DS.belongsTo("facilityType"), | |
condition: DS.belongsTo("condition"), | |
order: DS.attr("integer"), | |
}); | |
FacilityTypeCondition.reopenClass({ |
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
% cat ghostdriver.log !10146 | |
PhantomJS is launching GhostDriver... | |
[INFO - 2014-08-29T17:18:07.113Z] GhostDriver - Main - running on port 47037 | |
[INFO - 2014-08-29T17:18:08.002Z] Session [71e3e0f0-2fa0-11e4-a242-e70124d2c1fc] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.7 Safari/534.34","webSecurityEnabled":true} | |
[INFO - 2014-08-29T17:18:08.002Z] Session [71e3e0f0-2fa0-11e4-a242-e70124d2c1fc] - page.customHeaders: - {} | |
[INFO - 2014-08-29T17:18:08.002Z] Session [71e3e0f0-2fa0-11e4-a242-e70124d2c1fc] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"1.9.7","driverName":"ghostdriver","driverVersion":"1.1.0","platform":"linux-unknown-64bit","javascriptEnabled":true,"t |
NewerOlder