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
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<link rel="import" href="../topeka-elements/category-icons.html"> | |
<polymer-element name="my-element"> | |
<template> |
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
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
FROM ubuntu:16.04 | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
ca-certificates \ | |
apt-transport-https \ | |
openjdk-8-jre-headless \ | |
curl \ | |
xz-utils \ | |
unzip \ | |
bzip2 \ |
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
[{"langue":"fr","categorie":"litterature","theme":"Maxime Chattam","difficulte":"débutant","question":"Chez quel éditeur Maxime Chattam a-t-il publié 'Les Arcanes du chaos' en 2006 ?","reponse_correcte":"Albin Michel","autres_choix":["Michel Lafon","France Loisirs","Gallimard"],"anecdote":"'Les Arcanes du chaos' donne un aspect troublant du monde où tout n'est que manipulation, argent et pouvoir.","wikipedia":"https://fr.wikipedia.org/wiki/Les_Arcanes_du_chaos"},{"langue":"fr","categorie":"celebrites","theme":"Actu people : mars 2017","difficulte":"débutant","question":"Quelle star de télé-réalité s'est fait dé-tatouer la poitrine en mars 2017 ?","reponse_correcte":"Nabilla","autres_choix":["Myriam Abel","Loana","Caroline Receveur"],"anecdote":"Nabilla Benattia a tourné une intervention pour un numéro télévisuel de 'Zone Interdite' aux côtés d'Ophélie Meunier.","wikipedia":"https://fr.wikipedia.org/wiki/Nabilla_Benattia"},{"langue":"fr","categorie":"sciences","theme":"Alan Turing","difficulte":"expert","quest |
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
// By @riderx | |
// Prerequisite: install Scriptable @ https://apps.apple.com/us/app/scriptable/id1405459188 | |
// Create an API key by navigating to Profile > View Profile. Then: | |
// Under API Keys, select New API Key. | |
// access Read-only | |
const API_TOKEN = '***' | |
const API_SECRET = '***' |
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
// create this file in hooks/before_prepare.js | |
// add that in config.xml <hook src="hooks/before_prepare.js" type="before_prepare" /> | |
// this file fix the node_module directly, that the only solution i found who work | |
console.log('Fix activity#com.gae.scaffolder.plugin.FCMPluginActivity') | |
// if android:name="com.gae.scaffolder.plugin.FCMPluginActivity"> present in platforms/android/app/src/main/AndroidManifest.xml replace by android:name="com.gae.scaffolder.plugin.FCMPluginActivity" android:exported="false"> | |
// open file | |
const fs = require('fs'); |
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
export default { | |
async fetch(request, env) { | |
return await handleRequest(request) | |
} | |
} | |
const getlink = async (number) => { | |
const resp = await fetch('https://anchor.fm/s/414d1d4/podcast/rss') | |
const data = await resp.text() | |
// search all occurence of https://anchor.fm/indiemakers/episodes/.*< in data |
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
export default { | |
async fetch(request, env, context) { | |
const url = new URL(request.url) | |
const end = url.pathname.split('/').pop() | |
// check if end is number with regex | |
const regex = /\d/g | |
const isNumber = regex.test(end) | |
if (isNumber && url.pathname.startsWith('/episode/')) { | |
// is number search for the new name and redirect | |
return await handleRequest(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
const API_TOKEN = '***' | |
const API_SECRET = '***' | |
class LineChart { | |
// LineChart by https://kevinkub.de/ | |
constructor(width, height, values) { | |
this.ctx = new DrawContext() | |
this.ctx.size = new Size(width, height) | |
this.values = values |
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
/* This file is just for the flags, it wasn't modified */ | |
.vti__flag { | |
width: 20px; | |
} | |
.vti__flag.be { | |
width: 18px; | |
} | |
.vti__flag.ch { | |
width: 15px; | |
} |
OlderNewer