Skip to content

Instantly share code, notes, and snippets.

View degliwe's full-sized avatar

wesley deglise degliwe

View GitHub Profile
@degliwe
degliwe / README
Created October 4, 2022 12:25 — forked from diverted247/README
Export slides from Google Slides as SVG - Console Script (Chrome tested)
To export SVG from Google Slides.
1. Open Slide deck.
2. View -> 100%
3. Click on every thumbnail from first to last, this puts the SVG into the DOM.
4. Paste the export.js in the console.
5. Make sure to allow multiple downloads.
6. All SVG should be in Downloads folder.
Cheers,
@degliwe
degliwe / Poc.js
Last active March 11, 2019 13:12
Proof of concept Open initiatives
// Open a new tab (Ctrl+t) to http://ec.europa.eu/
// On the new tab open the dev tools console (Ctrl+Shift+J)
// Copy/paste the whole snippet (Ctrl+c, Ctrl+v)
// Execute (Return)
fetch("http://ec.europa.eu/citizens-initiative/services/initiative/get/open", {
mode: "no-cors",
headers: {
"Content-Type": "application/json"
}
@degliwe
degliwe / timeline-demo.html
Created February 13, 2019 14:07
timeline-demo
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>demo timeline</title>
[
{
"principle": "Digital-by-default, inclusiveness and accessibility",
"description": "Take steps to enable seamless digital delivery of services across sectors and collaboration in public service provision, by allowing EU institutions, private sector and civil society linkages to information held in public administration databases and systems in appropriate policy actions.",
"actions": [
{
"title": "Action 1",
"explanation": "Labore commodo nisi id fugiat sint cillum.",
"countries": {
"AT": {
@degliwe
degliwe / 0_reuse_code.js
Created June 7, 2016 08:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@degliwe
degliwe / How to theme wear face? .md
Last active August 29, 2015 14:13
How to theme Android wear watch face?

#How to theme Android wear watch face?

We will show here how to create a very nice and easy to implement theming system for your watchface.

Theme selector Theme Theme

##Prerequisite This tutorial is an extension to the excellent DigitalWatchFace sample project from Android developper

@degliwe
degliwe / Readme.md
Last active August 29, 2015 14:12
AngularJS: encapsulate components and template together

#AngularJS: encapsulate components and template together

AngularJS best pratices recommends to organise your code by components, however, when you need to declare template (ie. templateUrl attribute in your directive) then you are supposed to provide a path relative to your main script (usually app.js) which makes your components dependent of their positione in the file tree.

##Let's do it

Since javascript provide Document and HTMLDocument types and since document.scripts exists and do part of the job, I've decided to extend the Document prototype to provide getScriptAbsPath().

You can do it the AngularJS way by implementing a service, but to me it was more a problem at Javascript level.

@degliwe
degliwe / readme.md
Last active September 1, 2016 22:52
Make your site looks awesome with Chrome on Android Lollipop

#Make your site looks awesome with Chrome on Android Lollipop

Image Android Lollipop task switcher

Ever wanted to do this?

<link rel="icon" href="img/favicon.png" sizes:"192x192">
<meta name="theme-color" content="#ffaa00">
@degliwe
degliwe / 0_Add some depth to your WatchFace.gif
Last active February 17, 2017 15:01
Add some depth to your WatchFace
0_Add some depth to your WatchFace.gif
@degliwe
degliwe / designer.html
Created August 10, 2014 15:12
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {