Skip to content

Instantly share code, notes, and snippets.

accelerate==0.20.3
colorama
datasets
einops
flexgen==0.1.7
gradio_client==0.2.5
gradio==3.33.1
markdown
numpy
pandas
@the-unsoul
the-unsoul / video-station-language-injection.js
Last active March 5, 2024 05:57
Inject a subtitle language into Synology - Video Station
(function() {
var synoLang;
var isSynoReady;
var additional = {
code : 'vie', // <== uses reference language list at the bottom and set the 'code' to the language you wanted
label: 'Tiếng Việt' // <== 'label' can be anything you wanted. i.e. if set to 'New lang 123' you will see 'New lang 123' in the list
}
describe('my app', function() {
// angular is a big framework and many still mis-used it (like doing DOM manipulation with JQuery on angular)
// so protractor does not make to handle these mistake, but the work around will be simple
// beforeEach suite we simple do the waitForAngular() and sleep of a half of an second.
beforeEach(function() {
browser.waitForAngular();
browser.sleep(500);
})
[{"cc":"AED","symbol":"د.إ;","name":"UAE dirham"},{"cc":"AFN","symbol":"Afs","name":"Afghan afghani"},{"cc":"ALL","symbol":"L","name":"Albanian lek"},{"cc":"AMD","symbol":"AMD","name":"Armenian dram"},{"cc":"ANG","symbol":"NAƒ","name":"Netherlands Antillean gulden"},{"cc":"AOA","symbol":"Kz","name":"Angolan kwanza"},{"cc":"ARS","symbol":"$","name":"Argentine peso"},{"cc":"AUD","symbol":"AU$","name":"Australian dollar"},{"cc":"AWG","symbol":"ƒ","name":"Aruban florin"},{"cc":"AZN","symbol":"AZN","name":"Azerbaijani manat"},{"cc":"BAM","symbol":"KM","name":"Bosnia and Herzegovina konvertibilna marka"},{"cc":"BBD","symbol":"Bds$","name":"Barbadian dollar"},{"cc":"BDT","symbol":"৳","name":"Bangladeshi taka"},{"cc":"BGN","symbol":"BGN","name":"Bulgarian lev"},{"cc":"BHD","symbol":".د.ب","name":"Bahraini dinar"},{"cc":"BIF","symbol":"FBu","name":"Burundi franc"},{"cc":"BMD","symbol":"BD$","name":"Bermudian dollar"},{"cc":"BND","symbol":"B$","name":"Brunei dollar"},{"cc":"BOB","symbol":"Bs.","name":"Bolivian bolivian
@the-unsoul
the-unsoul / Service worker cheat sheet
Last active April 1, 2016 09:24
This cheat sheet collecting information of quick snippet of Service Worker from many source ( StackOverflow, Mozila Developer Network..)
// Registering
navigator.serviceWorker.register('./path_to_your_worker.js', {
scope: './base_url_of_the_web_app/'
}).then(function(registration) {
// Do soemthing with registration...
}, function(error) {
console.log('Failed to install:' + error);
});
// Unregistering (uninstall) all