If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
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
script = document.createElement('script');script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(script); | |
function download(name,jsonObject) { | |
var fileContents = JSON.stringify(jsonObject, null, 2); | |
var pp = document.createElement('a'); | |
pp.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(fileContents)); | |
pp.setAttribute('download', name+'.json'); | |
pp.click(); | |
} | |
df=[] | |
$('.m-mtk-track').each((index,item) => { |
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
{ | |
"ain't": "am not / is not / are not / has not / have not / did not", | |
"amn't": "am not", | |
"aren't": "are not", | |
"can't": "cannot", | |
"'cause": "because", | |
"could've": "could have", | |
"couldn't": "could not", | |
"couldn't've": "could not have", | |
"daren't": "dare not / dared not", |
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
script = document.createElement('script');script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(script); | |
function download(name,jsonObject) { | |
var fileContents = JSON.stringify(jsonObject, null, 2); | |
var pp = document.createElement('a'); | |
pp.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(fileContents)); | |
pp.setAttribute('download', name+'.json'); | |
pp.click(); | |
} | |
df={} | |
$( $('.wikitable')[0] ).find('tr').each((index,item) => { |
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
#!/usr/bin/env python3 | |
""" | |
Example of a generic Mixout implementation. (Lee et al., 2019). | |
https://arxiv.org/abs/1909.11299 | |
Implementation by Stephen Roller (https://stephenroller.com). | |
Updated 2020-02-10 to include 1/(1 - p) correction term. Thanks to | |
Cheolhyoung Lee for making this correction. |
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
import logging | |
import tracemalloc | |
from tornado.web import RequestHandler, HTTPError | |
class MemTraceHandler(RequestHandler): | |
def post(self) -> None: | |
action = self.get_argument('action') | |
nframe = self.get_argument('nframe', "6") |
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
def longest_subsequence_bisect(seq, mode='strictly', order='increasing', | |
key=None, index=False): | |
""" | |
>>> longest_subsequence_bisect([1,2,3,4,5,6,7,2,2,2,2,2,5,1,7,8]) | |
Return the longest increasing subsequence of `seq`. | |
Parameters | |
---------- |
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
FROM nvidia/cuda:9.0-base-ubuntu16.04 | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
build-essential \ | |
cuda-command-line-tools-9-0 \ | |
cuda-cublas-dev-9-0 \ | |
cuda-cudart-dev-9-0 \ | |
cuda-cufft-dev-9-0 \ | |
cuda-curand-dev-9-0 \ | |
cuda-cusolver-dev-9-0 \ |
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 text = "Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit,\nsed do eiusmod tempor incididunt ut labore et dolore magna aliqua" | |
sentences = text.split(/\n/); | |
var doc = {}; | |
doc.sentences = []; | |
for (var i = 0; i < sentences.length; i++) { | |
var sentence = sentences[i]; | |
var words = sentence.split(/\s+/) | |
var sent = {} | |
sent.tokens = []; |
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
const s3 = new AWS.S3(accessparams); | |
(async () => { | |
try { | |
const file = await s3 | |
.getObject({ Bucket: 'BUCKET-NAME', Key: 'path/to/your/file' }) | |
.promise(); | |
console.log(file.Body); | |
} catch (err) { | |
console.log(err); |