Skip to content

Instantly share code, notes, and snippets.

View lpellegr's full-sized avatar
Enjoying life every second of the day

Laurent Pellegrino lpellegr

Enjoying life every second of the day
View GitHub Profile
const template = document.createElement('template');
template.setAttribute('style', 'display: none;');
template.innerHTML = `<dom-module id="material-text-field" theme-for="vaadin-text-field">
<template>
<style>
:host {
background-color: #e1e9fd;
border-radius: 4px;
padding: 6px 12px;
width: 60px;
@lpellegr
lpellegr / gist:64005a58f29865099dcc47621cca2fba
Created January 18, 2018 08:32
noticeable-words-carousel.html
<link rel="import" href="../bower_components/polymer/polymer-element.html">
<dom-module id="noticeable-words-carousel">
<template>
<style>
:host {
box-sizing: border-box;
@apply(--typed-text-options);
}
@lpellegr
lpellegr / polymer.json
Created January 17, 2018 20:27
Noticeable.io polymer json
{
"entrypoint": "index.html",
"shell": "src/noticeable-app.html",
"fragments": [
"src/noticeable-account.html",
"src/noticeable-account-billing.html",
"src/noticeable-account-billing-plans.html",
"src/noticeable-account-billing-usage.html",
"src/noticeable-account-profile.html",
"src/noticeable-account-zapier.html",
Running Steam on fedora 26 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1501201798)
Installing breakpad exception handler for appid(steam)/version(1501201798)
Installing breakpad exception handler for appid(steam)/version(1501201798)
(steam:19583): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Adwaita/gtk-2.0/main.rc:733: error: unexpected identifier 'direction', expected character '}'
<polymer-element name="user-gravatar" attributes="email">
<template>
<img src="https://secure.gravatar.com/avatar/{{gid}}" />
</template>
<script>
Polymer('user-gravatar', {
ready: function() {
this.gid = md5(this.email);
}
});
[General]
# Default adapter name
# Defaults to 'BlueZ X.YZ'
#Name = BlueZ
# Default device class. Only the major and minor device class bits are
# considered. Defaults to '0x000000'.
#Class = 0x000100
@lpellegr
lpellegr / emergency-numbers.py
Last active May 9, 2017 16:04
Extract emergency numbers from the libphonenumber resource and create an immutable Java map based on country codes
#!/usr/bin/python3
from lxml import etree
import os
import tempfile
import urllib
JAVA_VARIABLE_NAME="emergencyNumberPerCountryCode"
PHONE_NUMBER_METADATA_URL="https://raw.githubusercontent.com/googlei18n/libphonenumber/master/resources/ShortNumberMetadata.xml"
@lpellegr
lpellegr / ow2-proactive-jenkins-tests-failing-investigation
Created August 19, 2016 06:38
Summary of Jenkins tests that are failing for Scheduling project
* Build #804 (Aug 16, 2016 12:24:04 PM)
Windows
Test Result (3 failures / ±0)
functionaltests.RestSchedulerJobTaskTest.testJobResultValue
functionaltests.RestSchedulerJobTaskTest.urlMatrixParams_shouldReplace_jobVariabls
functionaltests.RestSchedulerJobTaskTest.testJobResult
@lpellegr
lpellegr / ow2-proactive-list-repository-tags
Last active August 18, 2016 19:57
Demonstrate how to list Github repository tags dynamically using Github API
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready (function () {
jQuery.getJSON("https://api.github.com/repos/ow2-proactive/scheduling/tags").done(function (data) {
for(var i = 0; i < data.length; i++) {
var item = $("<li>");
var tag = data[i].name;
var a = $("<a>").attr("href", "http://doc.activeeon.com/" + tag).text("Version " + tag);
<?xml version="1.0" encoding="utf-8"?>
<agent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:proactive:agent:1.0:windows">
<config>
<proactiveHome>C:\Program Files (x86)\ProActiveAgent\schedworker</proactiveHome>
<javaHome>C:\Program Files (x86)\ProActiveAgent\schedworker\jre</javaHome>
<jvmParameters>
<param>-Djava.io.tmpdir=C:\Users\PROACT~1\AppData\Local\Temp\${rank}</param>
<param>-Dpa.logs.home=C:\Users\PROACT~1\AppData\Local\Temp\${rank}</param>
<param>-Dproactive.node.monitoring.db.dir=C:\Users\PROACT~1\AppData\Local\Temp\${rank}\</param>
<param>-Dpas.launcher.forkas.method=pwd</param>