Skip to content

Instantly share code, notes, and snippets.

View miguelusque's full-sized avatar
🤓
Coding from home

Miguel Martínez miguelusque

🤓
Coding from home
View GitHub Profile
@miguelusque
miguelusque / download_class_dojo_archive.py
Created July 4, 2023 12:47 — forked from dedy-purwanto/download_class_dojo_archive.py
Download all photos and videos from your Class Dojo account
"""
Download all ClassDojo photos and videos in your timeline.
by kecebongsoft
How it works:
1. Fetch list of items in the timeline, if there are multiple pages, it will fetch for all pages.
2. Collect list of URLs for the attachment for each item
3. Download the files into local temporary directory, and also save the timeline activity as a json file.
@miguelusque
miguelusque / download-classdojo-media.js
Created July 4, 2023 12:41 — forked from Patrick330/download-classdojo-media.js
Saving the images and videos from your ClassDojo storyline
/* run this in the console on the ClassDojo page */
function download(url, prefix) {
fetch(url).then(function(t) {
return t.blob().then((b)=> {
var a = document.createElement("a");
a.href = URL.createObjectURL(b);
var n = url.lastIndexOf('/');
var filename = url.substring(n + 1);
a.setAttribute("download", prefix+filename);
@miguelusque
miguelusque / index.html
Last active March 8, 2022 11:39
dask_sql_cpu
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dask-sql CPU</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
@miguelusque
miguelusque / index.html
Created March 8, 2022 11:35
dask-sql_gpu
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dask-sql GPU</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
@miguelusque
miguelusque / index.html
Created March 8, 2022 08:50
pandas_cpu
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>pandas_cpu</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>cudf_gpu</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>Machine Learning Frameworks Interoperability - Cheat Sheet</title>
<style type="text/css">
/*!
*
* Twitter Bootstrap
@miguelusque
miguelusque / graph_snippet.yaml
Created May 30, 2019 17:37
DataFrame-Flow yaml graph file snippet
- id: node_csvdata
type: CsvStockLoader
conf:
path: /data/stock_price_hist.csv.gz
inputs: []
- id: node_sort
type: SortNode
conf:
keys:
- asset