UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!
- liblinear-ruby: Ruby interface to LIBLINEAR using SWIG
#!/usr/bin/env python3 | |
# Copyright (c) 2019 acidzebra | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# |
youtube-dl --extract-audio --audio-format mp3 --embed-thumbnail --ignore-errors --add-metadata https://www.youtube.com/playlist?list=PLSRDGXudTSm8GqOjX2c8tEPxu-jYpb1CR |
youtube-dl --extract-audio --audio-format mp3 https://www.youtube.com/watch?list=PLSRDGXudTSm8AaE8Z5m-OIkV9gOCxnbRT |
https://open.spotify.com/track/3NfMETf3i6abJBPbhhlf2G | |
https://open.spotify.com/track/6rky1cp6w4lapZ0McP3elc | |
https://open.spotify.com/track/7f3koHxCMS3bNHieCXMEAg | |
https://open.spotify.com/track/59P0rMNweSDx7hOSEhCrhb | |
https://open.spotify.com/track/3Sb7a0H4ylGNHQc2yJHt3B | |
https://open.spotify.com/track/6XIgxqH4k9oLeSberHJ9EI | |
https://open.spotify.com/track/2gNuoi9Zxbq1Jyvj8ju5Sj | |
https://open.spotify.com/track/2koS4fD3kzizdnzWzyrxyT | |
https://open.spotify.com/track/1YAXrOLk7EGfv1tlSnGOqi | |
https://open.spotify.com/track/1Q8rXagviIoipQkAmLhGpy |
https://open.spotify.com/track/4DsnrzO7rOaGND5tqNF7bN | |
https://open.spotify.com/track/3yaAA6TL5X4RO0Mz1PrKlu | |
https://open.spotify.com/track/3OxImw52TVWVJtLHTG51rc | |
https://open.spotify.com/track/0HKUiNbJSqpS3UXe7C5Iys | |
https://open.spotify.com/track/5xKDpO6Udd8b8j7z21pYgy | |
https://open.spotify.com/track/3RYr4mhP41KDT8AybncbH4 | |
https://open.spotify.com/track/61iRFcNPdE7dg2RmdhrdZe | |
https://open.spotify.com/track/00S8FkdSM5NMcvMTx2KOhn | |
https://open.spotify.com/track/4141nAfre5O99oxnIbMmyH | |
https://open.spotify.com/track/4lfMEYMynTGJJluY00uhQ2 |
source 'https://rubygems.org' | |
gem "graphql", github: "rmosolgo/graphql-ruby", branch: "subscriptions" | |
gem "sinatra" | |
gem "thin" |
require 'clockwork' | |
#View clockwork's jobs | |
Clockwork.manager.instance_variable_get("@events").map { |job| | |
a = [:hour, :min, :wday].map { |e| | |
if job.instance_variable_get("@at").try(e) | |
"#{e}: #{job.instance_variable_get("@at").send(e)}" | |
end | |
}.join(" ") | |
[job.to_s, a] |
#Generate yearly invoices template: | |
time = Time.now | |
_format =->(d) {d.strftime("%B %d, %Y") } | |
Array(1..12).map { |e| | |
date = time.change(month: e) | |
puts "From #{_format.call(date.beginning_of_month)} to #{_format.call(date.end_of_month)}" | |
} |
/* | |
Copyright 2011 Martin Hawksey | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |