Skip to content

Instantly share code, notes, and snippets.

View qpre's full-sized avatar

Quentin Pré qpre

  • Connected Physics
  • Bordeaux
View GitHub Profile
@qpre
qpre / buckets.tf
Created March 17, 2020 16:25 — forked from nagelflorian/buckets.tf
Terraform config for static website hosting on AWS
# AWS S3 bucket for static hosting
resource "aws_s3_bucket" "website" {
bucket = "${var.website_bucket_name}"
acl = "public-read"
tags {
Name = "Website"
Environment = "production"
}
@qpre
qpre / elixir.yml
Created January 28, 2020 15:07
GitHub Actions for Elixir/Phoenix test/build/release + release on GitHub
name: Elixir CI
on: push
jobs:
test:
runs-on: ${{ matrix.os }}
name: OTP ${{ matrix.otp }} | Elixir ${{ matrix.elixir }} | Node ${{ matrix.node }} | OS ${{ matrix.os }}
strategy:
matrix:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Raphaelle && QQ's Funtime Zone</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
</head>
<body>
import fs from 'fs';
import path, { resolve } from 'path';
import assert from 'assert';
import Module from 'module';
import jsdom from 'jsdom';
import Mocha from 'mocha';
import chokidar from 'chokidar';
// Let's import and globalize testing tools so
// there's no need to require them in each test
@qpre
qpre / Regex.swift
Created January 3, 2016 13:59 — forked from apbendi/Regex.swift
Swift extension for Native String class to support Regex match and Regex replace. Credit - http://www.swift-studies.com/blog/2014/6/12/regex-matching-and-template-replacement-operators-in-swift *Updated for Swift 2.0*
import Foundation
struct Regex {
var pattern: String {
didSet {
updateRegex()
}
}
var expressionOptions: NSRegularExpressionOptions {
didSet {
@qpre
qpre / gist:aa00d07d0b346f633572
Created February 5, 2015 13:34
CSS3 Font Smoothing
.smooth {
-webkit-font-smoothing: antialiased;
text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
}
@qpre
qpre / gist:3712b36d06fcbbf15ca8
Created December 9, 2014 10:57
Javascript Flash support detection
var hasFlash = false;
try {
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
if (fo) {
hasFlash = true;
}
} catch (e) {
if (navigator.mimeTypes
&& navigator.mimeTypes['application/x-shockwave-flash'] != undefined
&& navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin) {
@qpre
qpre / _bower.json
Created February 12, 2014 00:13
Hot fix for generator-ember handlebar dependancy (app/templates/_bower.json)
{
"name": "blog",
"version": "0.0.0",
"dependencies": {
"handlebars": "1.3.0",
"ember": "1.3.1",
"ember-data": "1.0.0-beta.5",
"bootstrap-sass": "~3.0.0"
},
"devDependencies": {