This file contains 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
name: Deploy Github Page | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: |
This file contains 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 { Component, ViewEncapsulation } from '@angular/core'; | |
import { SwUpdate } from '@angular/service-worker'; | |
import { merge, Observable, of, Subject } from 'rxjs'; | |
import { map } from 'rxjs/operators'; | |
import { ToastOptions } from '@ionic/core'; | |
import { ToastController } from '@ionic/angular'; | |
import { environment } from 'src/environments/environment'; | |
@Component({ | |
selector: 'app-updates-notification', |
This file contains 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 * as functions from "firebase-functions"; | |
import { Request, Response } from "firebase-functions"; | |
import * as cors from 'cors'; | |
const corsHandler = cors({origin: true}); | |
// Start writing Firebase Functions | |
// https://firebase.google.com/docs/functions/typescript | |
export const helloWorld = functions.https.onRequest((request: Request, response: Response) => { | |
corsHandler(request, response, () => { |
This file contains 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 firebase_admin | |
from firebase_admin import auth | |
from firebase_admin import db | |
import json | |
# Initialize the app without credentials, as the function gets it from context | |
firebase_admin.initialize_app() | |
def hello_world(request): |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<base href="./"> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<script src="./main.esm.js"></script> | |
</head> |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> | |
This file contains 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
/** | |
* EXO FETCH et MANIPULATION DES DONNÉES | |
* DOC API: https://timetable.search.ch/api/help.en.html | |
* */ | |
// APPLICATION CFF SIMPLE: | |
const buildSearchHTML = () => { | |
const contener = document.querySelector('#cffApp'); | |
contener.innerHTML = ` | |
<input id="from" type="text" /> |
This file contains 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
// Based off of Shawn Van Every's Live Web | |
// http://itp.nyu.edu/~sve204/liveweb_fall2013/week3.html | |
// Using express: http://expressjs.com/ | |
var express = require('express'); | |
// Create the app | |
var app = express(); | |
// Set up the server | |
// process.env.PORT is related to deploying on heroku |
This file contains 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
const ytadkiller = () => { | |
if (window['yt-add-skiper-init']) | |
window['yt-add-skiper-init'].clearInterval(); | |
// init counter | |
window['yt-add-skiper-count'] = 0; | |
// init | |
window['yt-add-skiper-init'] = setInterval(_=> { | |
const el = document.querySelector('.ytp-ad-skip-button.ytp-button'); | |
if (!el) return; | |
// count |
This file contains 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
const path = require('path'); | |
const HtmlWebPackPlugin = require("html-webpack-plugin"); | |
module.exports = { | |
entry: './src/app/app.js', | |
output: { | |
filename: 'main.js', | |
path: path.resolve(__dirname, 'dist') | |
}, | |
resolve: { |
NewerOlder