Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nmnja on github.
  • I am nmnja (https://keybase.io/nmnja) on keybase.
  • I have a public key ASCUnuX03fGTvtTrinE-7lQ_hyPELxj82WEjbu7JRLPlIgo

To claim this, I am signing this object:

server { listen 80;
listen 443 ssl http2;
server_name sample.dev;
root "/home/vagrant/Code/sample/public";
index index.html index.htm index.php;
charset utf-8;
location / {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimal-ui"/>
<title>Fitness First</title>
</head>
<body yahoo="fix" style="background-color:#ffffff" topmargin="0" leftmargin="0">
<style type="text/css">
@nmnja
nmnja / cart.json
Last active August 29, 2015 14:26
{
"destination": [
{
"id": 1,
"name": "Amsterdam",
"code": "AMS",
"activities": [
{
"id": 23,
"name": "Coffee shop"
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise32"
header('Content-type: application/octet-stream');
header("Content-Transfer-Encoding: binary");
header('Content-Disposition: attachment; filename="'.$file_name.'"');
echo $file_contents;
exit;
<?php
function execPrint($command) {
$result = array();
exec($command, $result);
foreach ($result as $line) {
print($line . "\n");
}
}
print("<pre>" . execPrint("git pull origin master") . "</pre>");
?>
/*global -$ */
'use strict';
// generated on 2015-02-25 using generator-gulp-webapp 0.3.0
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var browserSync = require('browser-sync');
var reload = browserSync.reload;
gulp.task('styles', function () {
return gulp.src('app/styles/main.scss')