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/python3 | |
import requests | |
import json | |
API_KEY = '<YOUR_API_KEY>' | |
BASE_URL = 'http://localhost:2283/api' # IMMICH URL | |
HEADERS = { | |
'Content-Type': 'application/json', | |
'Accept': 'application/json', |
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
/* Polyfill service v3.111.0 | |
* Generator: https://polyfill.io/v3/polyfill.min.js?features=es5%2Ces6%2Ces7%2CEventSource%2CPromise%2CPromise.allSettled%2CPromise.any | |
* Features: | |
* es5 | |
* es6 | |
* es7 | |
* EventSource | |
* Promise | |
* Promise.allSettled | |
* Promise.any |
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
/* Internet Explorer 11 polyfill from es2025 to es2022 */ | |
(function(self, undefined) {!function(t){"use strict";function e(t){switch(typeof t){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return null===t?"null":"object"}}function r(t){return Object.prototype.toString.call(t).replace(/^\[object *|\]$/g,"")}function n(t){return"function"==typeof t}function o(t){if(null===t||t===B)throw TypeError();return Object(t)}function i(t){return t>>0}function f(t){return t>>>0}function u(e){if(!("TYPED_ARRAY_POLYFILL_NO_ARRAY_ACCESSORS"in t)){if(e.length>N)throw RangeError("Array too large for polyfill");var r;for(r=0;r<e.length;r+=1)!function n(t){try{Object.defineProperty(e,t,{get:function(){return e._getter(t)},set:function(r){e._setter(t,r)},enumerable:!0,configurable:!1})}catch(r){}}(r)}}function a(t,e){var r=32-e;return t<<r>>r}function h(t,e){var r=32-e;return t<<r>>>r}function y(t){return[255&t]}function s(t){return a(t[0],8)}functi |
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
public class MyPanel extends JPanel { | |
private JLabel jcomp1; | |
private JLabel jcomp2; | |
private JLabel statusPrinter; | |
private JLabel statusPinpad; | |
public MyPanel() { | |
//construct components | |
jcomp1 = new JLabel ("Impresora"); | |
jcomp2 = new JLabel ("PinPad"); |
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
import { NgxSpinnerService } from 'ngx-spinner'; | |
import { map, finalize } from 'rxjs/operators'; | |
import { HttpClient, HttpHeaders } from '@angular/common/http'; | |
... | |
private attachSpinner(ob : Observable<any>): Observable<any> { | |
this.spinner.show(); | |
return ob.pipe(finalize(() => { | |
this.spinner.hide() |
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
function get_cuil_cuit(document_number, gender){ | |
/** | |
* Cuil format is: AB - document_number - C | |
* Author: Nahuel Sanchez, Woile | |
* | |
* @param {str} document_number -> string solo digitos | |
* @param {str} gender -> debe contener HOMBRE, MUJER o SOCIEDAD | |
* | |
* @return {str} |
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
body{background:#fff;color:#333;font-family:Verdana;font-size:90%;margin:0} | |
a{color:#33c} | |
a:visited{color:#669} | |
h1{color:#8a0;font-size:250%;letter-spacing:-.1em;margin:10px 0} | |
h2{color:#cc6;font-size:200%;letter-spacing:-.1em;margin:10px 0} | |
h2 a,h2 a:visited{color:#8a0;text-decoration:none} | |
h3{border-bottom:2px solid #666;font-size:120%;margin:30px 0 10px} | |
h3#headeremail{border:none} | |
h4{font-size:110%;margin:25px 0 10px} | |
div.code{background:#fee;border:2px solid #dcc;color:#333;font-family:monospace;margin:10px;overflow:auto;padding:10px;white-space:pre} |
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
function get_avatar_from_service(service, userid, size) { | |
// this return the url that redirects to the according user image/avatar/profile picture | |
// implemented services: google profiles, facebook, gravatar, twitter, tumblr, default fallback | |
// for google use get_avatar_from_service('google', profile-name or user-id , size-in-px ) | |
// for facebook use get_avatar_from_service('facebook', vanity url or user-id , size-in-px or size-as-word ) | |
// for gravatar use get_avatar_from_service('gravatar', md5 hash email@adress, size-in-px ) | |
// for twitter use get_avatar_from_service('twitter', username, size-in-px or size-as-word ) | |
// for tumblr use get_avatar_from_service('tumblr', blog-url, size-in-px ) | |
// everything else will go to the fallback | |
// google and gravatar scale the avatar to any site, others will guided to the next best version |
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
/** | |
* java -jar jsrun.jar app/run.js -p -a -t=templates/outline ../public/javascripts/urlize.js | |
*/ | |
/** | |
* See (http://jquery.com/). | |
* @name jQuery | |
* @class | |
* See the jQuery Library (http://jquery.com/) for full details. | |
*/ |