Skip to content

Instantly share code, notes, and snippets.

View paramsingh's full-sized avatar

param paramsingh

View GitHub Profile
> show measurements
> insert "param\"" hello=1
> show measurements
name: measurements
name
----
"param""
SELECT * FROM "\"param\"\"" WHERE time > 1400000100000000000 ORDER BY time ASC LIMIT 25
{
"fields": {
"recording_msid": "4269ddbc-9241-46da-935d-4fa9e0f7f371",
"track_name": "Immigrant Song 0",
"recording_mbid": "2cfad207-3f55-4aec-8120-86cf66e34d59",
"release_msid": null,
"tags": "",
"release_mbid": "",
"artist_mbids": "",
"release_name": "",
> show measurements
name: measurements
name
----
"param""
"test"
"testuserplsignore"
platform linux2 -- Python 2.7.12, pytest-2.9.1, py-1.4.33, pluggy-0.3.1
rootdir: /code/listenbrainz, inifile: pytest.ini
plugins: cov-2.2.1
collected 33 items
db/tests/test_lastfm_session.py ..
db/tests/test_lastfm_token.py .....
db/tests/test_lastfm_user.py ...
db/tests/test_user.py ..
webserver/test/test_utils.py .
import threading
import time
def hello():
while True:
print("Hello")
time.sleep(4)
>>> import ujson
>>> ujson.loads(ujson.dumps('https://metabrainz.org'))
u'https://metabrainz.org'
>>> ujson.dumps('https://metabrainz.org')
'"https:\\/\\/metabrainz.org"'
>>>
>>> import ujson
>>> import json
>>> ujson.dumps("https://metabrainz.org")
'"https:\\/\\/metabrainz.org"'
>>> json.dumps("https://metabrainz.org")
'"https://metabrainz.org"'
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll inf = 1e18;
ll dist[3][3][100100];
struct state {
int u, a, b;
ll d;
state(int x, int y, int z, ll p) {