Skip to content

Instantly share code, notes, and snippets.

View gregtap's full-sized avatar
🐬

Gregory TAPPERO gregtap

🐬
  • Paris
View GitHub Profile
<template>
<div>
<input type="checkbox"
class="foobar"
id="header-search"
:checked="isFocus" />
<label for="header-search">
<img :src="assets.searchIconUrl" alt="Search icon" />
<img :src="assets.closeIconUrl" alt="Close icon" />
### Keybase proof
I hereby claim:
* I am coulix on github.
* I am gregtap (https://keybase.io/gregtap) on keybase.
* I have a public key ASC9Ion28OfJbCA4RRu-xZscnoKMIOBxOOYN45DR3Ml-Qgo
To claim this, I am signing this object:
@gregtap
gregtap / asyncio_sample.py
Created May 22, 2017 14:44
asyncio web client and server
import json
import logging
import logging.config
import os
import time
from config import LOGGING, db
from datetime import datetime, timezone
import aiohttp
from aiohttp import web
@gregtap
gregtap / foo.go
Created August 5, 2016 14:44
Test go
type WorkUnit struct {
Urls [1000] string
}
accUrls := make([]string, 1000)
var url string
i := 1
for rows.Next() {
@gregtap
gregtap / scraper.py
Created April 24, 2016 19:01
// fetch status tester Python
import re
import bs4
import aiohttp
import asyncio
HOST = 'http://dev-api.wyzant.com'
# Holds fetched API links and their status.
api_status = {}
var path = require('path');
var webpack = require('webpack');
var bowerDir = __dirname + '/bower_components';
var config = module.exports = {
// the base path which will be used to resolve entry points
context: __dirname,
// the main entry point for our application's frontend JS
@gregtap
gregtap / service.js
Created November 26, 2015 07:22
✘ Error: Assertion Failed: calling set on destroyed object
import Ember from 'ember';
const { Service, run } = Ember;
/**
* Ticking clock service.
* We use this service to sync all our momentjs udpates every second
* and not start one timer for each message.
*/
export default Service.extend({
<p><b>Error Code:</b> {{errorCode}}</p>
<p><b>Error Code:</b> {{errorCode}}</p>