Skip to content

Instantly share code, notes, and snippets.

@minhtranite
minhtranite / iframe.js
Last active March 11, 2020 02:27
Test cookie
document.cookie = "name=oeschger";
document.cookie = "favorite_food=tripe";
@minhtranite
minhtranite / drupal.nginx.conf
Last active August 4, 2016 08:07
Drupal nginx config
server {
server_name example.com;
root /path/to/example.com;
access_log /path/to/example.com/logs/access.log;
error_log /path/to/example.com/logs/error.log;
location = /favicon.ico {
log_not_found off;
access_log off;
}
@minhtranite
minhtranite / webpack-stats-plugin.js
Created January 8, 2016 16:00
Webpack stats plugin
import fs from 'fs';
import path from 'path';
const handleFilePath = (file) => {
file = file || 'webpack.stats.json';
if (!path.isAbsolute(file)) {
file = path.join(process.cwd(), file);
}
return path.normalize(file);
};
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->