Skip to content

Instantly share code, notes, and snippets.

View bipoza's full-sized avatar
📱

Bittor Poza bipoza

📱
View GitHub Profile
@aamishbaloch
aamishbaloch / sign-in-with-apple.md
Created October 8, 2019 14:58
Sign In with Apple using Django (Python) Backend

Implementing Sign In with Apple in your Django (Python) backend

Apple announced a new feature, "Sign In with Apple" enabling users to sign in to apps using their Apple ID. This new feature is meant to be a secure and privacy-friendly way for users to create an account in apps. Most iOS and Mac users already have an Apple ID, and this new feature lets them use that Apple ID to sign in to other apps and websites.

Apple is taking a firm stance to protect user's privacy, rather than letting applications see the user's real email address, they will provide the app with a fake or random email address unique to each app. Don't you worry! Developers will still be able to send emails to these proxy addresses, it just means developers won't be able to use the email addresses in any other way. This feature will also allow users to disable email forwarding per application.

How it works

Apple adopted the existing standards OAuth 2.0 and OpenID Connect to use as the foundation for their new API. If you're familiar

@rampfox
rampfox / Chromium-at-startup.md
Last active May 9, 2025 04:35
How to open Chromium in full screen at startup on the Raspberry Pi

(debian 10 buster)

First, it seems that ~/.config/lxsession/LXDE-pi/autostart does not exist by default.

  1. copy the autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
add_shortcode('wps_event_link', 'wps_event_link');
function wps_event_link() {
$post_id = '{{ post_data:ID }}';
}
@mdorchain
mdorchain / sliding-segments.page.html
Last active December 9, 2022 21:34
Ionic 4 Sliding segments
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>
Demo
</ion-title>
</ion-toolbar>
</ion-header>
@kplhub
kplhub / textarea-autosize.directive.ts
Last active June 19, 2021 07:43
textarea autosize directive for ionic/angular 4 (updated to work with 4.0.0)
import { Directive, ElementRef, OnInit } from '@angular/core';
import { Observable, fromEvent } from 'rxjs';
import { DomController } from '@ionic/angular';
@Directive({
selector: 'ion-textarea[autosize]'
})
export class TextareaAutosizeDirective implements OnInit {
@parreitu
parreitu / NextCloud-RaspberryPI-etxean.txt
Last active November 17, 2021 19:34
Nextcloud RaspberryPI batean: norberak bere etxetik kudeatu ahal izango duen hodei propioa
HELBURUA
=========
Dokumentu honetan nire etxean eta RaspberryPI bat erabiliz, Nextcloud instantzia propioa sortzeko erabili ditudan pausoak gainetik azaltzera noa (ez da gida zehatz bat). Norbait animatzen da, jakin dezala honek niri behintzat funtzionatu didala.
Erabiltzen ari naizen RaspberryPI-ak urte batzuk ditu, RaspberryPI2B modeloa da: https://www.raspberrypi.org/products/raspberry-pi-2-model-b/
Dropbox ezagutzen duenarentzat, Nextcloud-en erabilera oso antzerakoa dela konturatuko da. Sortuko dugun nextcloud instantzia honetan guk nahi ditugun erabiltzaileak sortu ahal izango ditugu, eta erabiltzaile bakoitzak bere txokoa izango du, non:
- karpetak sortu ahal izango ditu bere hodei propioan.
- Ezabatzen diren dokumentuak zakarontzira joango direnez, erabiltzaile bakoitzak aukera izango du bere kabuz dokumentuak zakarontzitik berreskuratzeko.
@tabirkeland
tabirkeland / modal.html
Created April 20, 2018 01:31
ng2-pdf-viewer zoom implementation
<ion-header>
<ion-navbar>
<ion-title>{{ title }}</ion-title>
<ion-buttons end>
<button ion-button icon-only (click)="dismiss()">
<ion-icon name="close"></ion-icon>
</button>
</ion-buttons>
</ion-navbar>
@woogists
woogists / wc-products-displayed-per-page.php
Last active April 24, 2025 20:12
[Theming Snippets] Change number of products displayed per page
/**
* Change number of products that are displayed per page (shop page)
*/
add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 );
function new_loop_shop_per_page( $cols ) {
// $cols contains the current number of products per page based on the value stored on Options -> Reading
// Return the number of products you wanna show per page.
$cols = 9;
return $cols;
@n1ru4l
n1ru4l / index.js
Created August 7, 2017 10:47
Fetch blob and convert to base64
export const fetchAsBlob = url => fetch(url)
.then(response => response.blob());
export const convertBlobToBase64 = blob => new Promise((resolve, reject) => {
const reader = new FileReader;
reader.onerror = reject;
reader.onload = () => {
resolve(reader.result);
};
reader.readAsDataURL(blob);
@danielcrisp
danielcrisp / token.interceptor.ts
Last active April 5, 2021 20:15
TokenInterceptor - Async HTTP Interceptors with Angular 4
import { Injectable } from '@angular/core';
import { HttpErrorResponse, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/mergeMap';
import { AuthService } from './auth.service';
@Injectable()
export class TokenInterceptor implements HttpInterceptor {