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) => { |
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 3.
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
track_year track_id track_pos artist_name track_name track_writers track_votes | |
1951 1 Nilla Pizzi Grazie dei Fiori G. C. Testoni, M. Panzeri,S. Seracini 50 | |
1951 1 2 Nilla Pizzi,Achille Togliani "La luna si veste d'argento" V. Mascheroni,Biri 30 | |
1951 2 3 Achille Togliani Serenata a nessuno W. Colì 20 | |
1951 3 F Achille Togliani,Duo Fasano Al mercato di Pizzighettone N. Ravasini,A. Locatelli | |
1951 4 F Nilla Pizzi,Achille Togliani Eco tra gli abeti E. Bonagura,C. A. Rossi | |
1951 5 F Achille Togliani,Duo Fasano Famme durmì V. Panzuti,Danpa | |
1951 6 F Duo Fasano La cicogna distratta Da Rovere, A. Valleroni,Carrel | |
1951 7 F Nilla Pizzi,Duo Fasano La margherita E. B. Valdes | |
1951 8 F Achille Togliani Sedici anni L. Gambetti, M. Mariotti,A. Mari |
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(); | |
} | |
const title = $('.firstHeading').text().replace(/[aA-zZ]/g,'').trim(); | |
const table = $('.wikitable').length - 1; |
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). | |
Example output: |
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). | |
Example output: |
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 | |
from typing import Any, Callable, Dict, Iterable, Union | |
import multiprocessing | |
import queue | |
import sys | |
import threading | |
import time | |
class ThreadPool: |
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/python | |
import ctypes | |
import sys | |
size = int(sys.argv[1]) | |
class MemoryTest(ctypes.Structure): | |
_fields_ = [ ('chars' , ctypes.c_char*size * 1024*1024 ) ] | |
try: | |
test = MemoryTest() |
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
sudo swapoff -a | |
sudo dd if=/dev/zero of=/swapfile bs=1G count=16 | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
grep SwapTotal /proc/meminfo |
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
// C++ includes used for precompiling -*- C++ -*- | |
// Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
// | |
// This file is part of the GNU ISO C++ Library. This library is free | |
// software; you can redistribute it and/or modify it under the | |
// terms of the GNU General Public License as published by the | |
// Free Software Foundation; either version 3, or (at your option) | |
// any later version. |