-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
This file contains hidden or 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 X: | |
... pass | |
... | |
>>> @classmethod | |
... def mysum(cls, x, y): | |
... return x + y | |
... | |
>>> X.setattr('s', mysum) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> |
This file contains hidden or 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
Imagine graph G with vertexes A, B, C (sketch this if that's your thing). G has the following directed edges: | |
A->B | |
B->C | |
C->A | |
Basically this is a triangle with a loop. Now, let's say we model this with a binary matrix. Edge A->B means that G[A][B]=1. Similarly: G[B][C], G[C][A] = 1, 1. Think about this 2D array as a matrix G1: | |
ABC | |
A010 | |
B001 | |
C100 |
This file contains hidden or 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 xmpp = require('node-xmpp'), | |
secret = require('./secret'), | |
util = require('util'); | |
var creds = { | |
jid: '[email protected]', | |
password: secret.pw, //string | |
}; | |
var GChat = function(creds) { |
This file contains hidden or 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
<html> | |
<head></head> | |
<body> | |
<p>Hello, world!</p> | |
</body> | |
</html> |
This file contains hidden or 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
{ | |
"id": "1fe8d2f7-4266-4830-af03-a389ca86f31b", | |
"event": 1.3575080009429e+15, | |
"bodyHtml": "Bonne rentr\u00e9e , rien qu'a dire ces 2mots j'ai envie de chialer.\n#va#retrouver#ces#deux#amour#Marie#laurette. ", | |
"ancestorId": "1fe8d2f7-4266-4830-af03-a389ca86f31b", | |
"annotations": { | |
}, | |
"authorId": "[email protected]", | |
"createdAt": 1357508000, |
This file contains hidden or 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
// built from definition: http://books.xmlschemata.org/relaxng/ch19-77049.html | |
var xsdDateTimePattern = new RegExp([ | |
'(\\d{4})', //year | |
'-', | |
'(\\d{2})', // month | |
'-', | |
'(\\d{2})', // day | |
'T', | |
'(\\d{2})', // hour | |
':', |
Many Livefyre APIs use Livefyre URNs as id
s of the resources they describe.
The URN Resolver API allows a client to resolve a Livefyre URN to a related URL that describes or manages the resource indicated by the URN.
- Given knowledge of a Livefyre Collection's Network, Site ID, and Article ID, I can create a link to manage that Collection in Livefyre Studio's web UI.
This file contains hidden or 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 gobengo on github. | |
* I am bengo (https://keybase.io/bengo) on keybase. | |
* I have a public key whose fingerprint is 3EFE C28D FEA1 955D CBFB 3B91 FAFE 5464 7D99 6E04 | |
To claim this, I am signing this object: |
This file contains hidden or 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
{ | |
"@context": "http://www.w3.org/ns/activitystreams#", | |
"id": "https://rhiaro.co.uk/2016/12/georgetown-wandering", | |
"type": "http://www.w3.org/ns/activitystreams#Article", | |
"content": "<p>Yesterday evening (21st) I went for a 'quick walk' into town. My apartment is about a 20 minute walk from the edge of George Town heritage area and 40 minutes from the jetty and core tourist zone. Between home and the edge of the 'nice' part of town is not particularly nice: apartment blocks, malls and big roads with... intermittent... footpaths. There are still lots of interesting places to stop of course; markets, stalls, local restaurants, general streetside chaos. Walking around here takes a lot of concentration, between trying to take in the surroundings, not being hit by scooters and cars, avoiding enormous open holes into the sewer, and not accidentally buying a kilo of tropical fruit every five minutes.</p>\r\n\r\n<p>The sky was blue. My goal was to procure coconut oil for cooking. I thought it would be easy to |
OlderNewer