Skip to content

Instantly share code, notes, and snippets.

View vinyll's full-sized avatar
🗺️
Creating locally

Vincent Agnano vinyll

🗺️
Creating locally
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vinyll on github.
  • I am vinyll (https://keybase.io/vinyll) on keybase.
  • I have a public key ASABlty2BAOWfId2Rzoqv2MU5mHBxvvUv5SPaWfeC2iAQQo

To claim this, I am signing this object:

#/bin/sh
# Instructions:
# 1. Copy this script locally and run the following `chmod +x mac-address-spoofer.sh`
# 2. Later, run the following: `./mac-address.spoofer.sh` and see your MAC address changing.
echo "origin MAC address: " `sudo ifconfig en0 ether | grep ether`
sudo ifconfig en0 ether `openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`
echo "new MAC address: " `sudo ifconfig en0 ether | grep ether`
<meta charset=utf-8>
<script src=https://gitcdn.xyz/repo/webcomponents/custom-elements/master/custom-elements.min.js></script>
<x-hello name=Native></x-hello>
<x-world name=Component color=red></x-world>
<script>
class XHello extends HTMLElement {
constructor(tagName) {
<meta charset=utf-8>
<script src=https://gitcdn.xyz/repo/webcomponents/custom-elements/master/custom-elements.min.js></script>
<x-hello name=Native></x-hello>
<x-world name=Component color=red></x-world>
<script>
class Component extends HTMLElement {
constructor(tagName) {
<!-- Chromium (or Google® Chrome®) only for now -->
<meta charset=utf-8>
<style>
todo-item[checked] {
text-decoration: line-through;
color: #888;
}
</style>
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvteWc1BFLkL/AE0Ylv0wtd+EdUfkBQxcVm1wujOYXhegUeGmxA5Huiy+JHZ7t891a53P21PASnOSZvTrmHHw7W3QcMMHnb5UqMbtP3ZBug5aa9aG+bxxxNiCDIVcDE+kwIp0CwoXFc8o+b9HS9dzbu7BUex/GtUPKYJCpzkWNsC2wxQTJ5N9MrzMNZC5SyacOt26oiNWLOdMJ66/TUcONHzgIRXRKiro2srvvLzkhXDNM66I/HCCgyk7psF073FSUaRqrN4fEf8hPL5mJxwOldy810knYr7gxWnPF86wyl4spKb4z04mFZa5iEjrgJSa+eSQs3DI5zELB5J4ah7wqw== vinyll@vinyll-laptop
@vinyll
vinyll / components.js
Created June 28, 2017 19:47
Custom native webcomponents demo
class Component extends HTMLElement {
constructor() {
super()
this.onclick = event => this.click(event)
this.props = this.getProps()
for(let prop in this.props) {
if(this.hasAttribute(prop)) {
this.props[prop] = this.getAttribute(prop)
}
<template>
<div>
<router-link to=/>Revenir aux résultats</router-link>
<div :if="result !== null">
<!-- debugResults : {{singleResult}} -->
<p>Nom entreprise : {{result.nom_raison_sociale}}</p>
<ul>
<li> Siret : {{result.siret}}</li>
<li> Siren : {{result.siren}}</li>
<li> Clef NIC : {{result.nic}}</li>
<!-- Proposition de styleguide simple pour Cafebabel. -->
<!doctype html>
<meta charset=utf-8>
<title>Cafebabel Styleguide</title>
<h1>Titre</h1>
<h2>Sous-titre</h2>
# These benchmarks are testing https://github.com/pyrates/roll/tree/master/benchmarks
# on a MacBook Air 2013 OSX 10.12.3 - 1.3 GHz Intel Core i5 - 8 GB 1600 MHz DDR3
./bench.sh
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Running bench with ab for aiohttp
HTTP/1.1 200 OK
Content-Length: 25
Content-Type: text/plain; charset=utf-8
Date: Tue, 10 Oct 2017 14:42:45 GMT