Skip to content

Instantly share code, notes, and snippets.

View JulienHe's full-sized avatar
🍫

Julien Henrotte JulienHe

🍫
View GitHub Profile
@JulienHe
JulienHe / dabblet.css
Created December 31, 2012 14:35
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background:url(https://dl.dropbox.com/u/5465537/texture.png) center center,
url(https://dl.dropbox.com/u/5465537/splash.jpg) no-repeat center -150px,
#80c1d6;
min-height: 100%;
@JulienHe
JulienHe / routes.js
Last active February 18, 2018 13:52
routes.js for next-routes with Firebase Functions
const routes = module.exports = require('next-routes')()
routes
.add('home', '/', 'index')
.add('about', '/about', 'about')
.add('blog', '/blog', 'about')
@JulienHe
JulienHe / Header.js
Last active February 19, 2018 12:27
Header.js for next-routes and Firebase function
import React, { PureComponent } from 'react';
import { Link } from 'src/routes';
export class Header extends PureComponent {
render() {
return (
<header>
<Link route='home' passHref>
<a>Home</a>
</Link>
@JulienHe
JulienHe / app.js
Created February 18, 2018 14:48
app.js - Firebase functions
import * as functions from 'firebase-functions';
import next from 'next';
import routes from './routes';
const dev = process.env.NODE_ENV !== 'production';
const app = next({ dev, conf: { distDir: 'next' } });
const handler = routes.getRequestHandler(app);
const nextApp = functions.https.onRequest((request, response) => {
console.log('File: ' + request.originalUrl); // eslint-disable-line no-console
@JulienHe
JulienHe / package.json
Last active February 19, 2018 12:38
Package.json - Next-routes
{
"name": "test",
"version": "2.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"babel-plugin-module-resolver": "^3.1.0",
"babel-runtime": "^6.26.0",
"firebase-admin": "^5.7.0",
"firebase-functions": "^0.8.0",
{
"presets": "next/babel",
"plugins": [
[
"module-resolver",
{
"root": ["./"],
"alias": {
"components": "./src/app/components",
"src": "./src",
{
"hosting": {
"public": "dist/public",
"rewrites": [
{
"source": "**/**",
"function": "app-next"
}
],
"predeploy": "yarn build-public"
@JulienHe
JulienHe / mouthposition.js
Created December 9, 2019 06:42
Spark AR - Mouth Corner
/**
* Author: Julien Henrotte @julien_he
* Company: UltraSuperNew http://ultrasupernew.com/
*/
/**
* Modules
*/
const Scene = require('Scene');
const FaceTracking = require('FaceTracking');
@JulienHe
JulienHe / followers-function.js
Last active April 15, 2020 06:58
IG Followers
function eventFire(el, etype){
if (el.fireEvent) {
el.fireEvent('on' + etype);
} else {
var evObj = document.createEvent('Events');
evObj.initEvent(etype, true, false);
el.dispatchEvent(evObj);
}
}
@JulienHe
JulienHe / common.json
Last active March 5, 2022 16:54
English
{
"homepage": {
"tagline": "Stand With Ukraine",
"subtag": "Spread love, not war.",
"intro": "Stand with Ukraine Art is a way for anyone to show their support to Ukraine in a digital way on Social Network.\n We want peace, not war.",
"createYourOwn": "Create your own 🇺🇦❤️ "
},
"navigation": {
"information": "Information",
"help": "How can I help?"