Skip to content

Instantly share code, notes, and snippets.

View degliwe's full-sized avatar

wesley deglise degliwe

View GitHub Profile
@degliwe
degliwe / Perspective-blocks.markdown
Created June 22, 2014 16:53
A Pen by Wesley DEGLISE.

Perspective blocks

Animated perspective while scrolling the page. Each section appear as a 3d block. Full CSS, no javascript.

A Pen by Wesley DEGLISE on CodePen.

License.

@degliwe
degliwe / Interactive-radar-chart.markdown
Created June 22, 2014 16:53
A Pen by Wesley DEGLISE.
@degliwe
degliwe / AndroidWearBackground
Created July 6, 2014 15:34
This is how to display a nice background on Android Wear notification instead of a plain color or a pixelated icon
int notificationId = 001;
// Create a WearableExtender to add functionality for wearables
NotificationCompat.WearableExtender wearableExtender =
new NotificationCompat.WearableExtender()
.setBackground(bigBitmap);
// Build the notification
NotificationCompat.Builder notificationBuilder =
new NotificationCompat.Builder(this)
@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 {
@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 / 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 / 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 / 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 / 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