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
console.log('TEST'); | |
setInterval(async () => { | |
const response = await fetch('https://noahglynn.xyz/api/nowplaying/flow_radio_one'); | |
const nowplaying = await response.json(); | |
const songTitle = nowplaying?.now_playing?.song?.text; | |
document.querySelector('.audio-player .current-time').innerHTML = songTitle ? `Streaming ${songTitle}` : 'Streaming'; | |
}, 10000) |
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
#!/usr/bin/env python | |
import csv | |
import multiprocessing as mp | |
counter = None | |
def init(c): | |
global counter |
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
rmdir "dist" /S /Q | |
rmdir "build" /S /Q | |
rmdir "blitz_js_query.egg-info" /S /Q | |
python setup.py sdist | |
python setup.py bdist_wheel | |
twine upload dist/* |
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
/** | |
* Converts price strings to price ints | |
* Run with 'mongo mongo_convert_price.js' | |
*/ | |
var db = connect('localhost:27017/warframe-nexus'); | |
var col = 'requests'; | |
var count = db[col].count(); | |
var current = 0; |
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
'use strict' | |
const Method = require("../../../../Method.js") | |
/** | |
* Contains multi-purpose functions for child-methods and provides default values | |
*/ | |
class Statistics extends Method { | |
constructor() { | |
super() |
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
/** | |
* Generates different data test sets | |
* Run with 'mongo mongo_data.js' | |
*/ | |
var db = connect('localhost:27017/nexus-stats'); | |
var sets = [ | |
//["ds_micro", 1000], | |
//["ds_tiny", 20000], |
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
#include <stdio.h> | |
#include <stdlib.h> | |
struct list_elem { | |
void* elem; | |
struct list_elem* next; | |
}; | |
void add(struct list_elem* head, void* elem) { | |
while (head->next != NULL) { |