Skip to content

Instantly share code, notes, and snippets.

View MindTwister's full-sized avatar

Kristoffer Sall-Storgaard MindTwister

View GitHub Profile
((php-mode
(phpcbf-standard . PSR2)
(eval . (progn
(php-enable-psr2-coding-style)
(phpcbf-enable-on-save)
(add-hook 'php-mode-hook 'php-enable-psr2-coding-style)
(add-hook 'php-mode-hook 'phpcbf-enable-on-save)))))
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
package main
import (
"flag"
"os"
"os/exec"
"reflect"
"time"
"log"
)
package main
import (
"bufio"
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
"regexp"
"Change default folder for ~ and .swp files
if( expand($TEMP) == "" )
"Default for linux
let s:tempFolder = "/tmp"
else
"Default for windows
let s:tempFolder = expand($TEMP)
endif
let &directory=s:tempFolder
let &backupdir=s:tempFolder
@MindTwister
MindTwister / Makefile
Created February 6, 2013 10:46
Coffee script redux makefile with source maps
# Coffee source (must be publicly available)
COFFEE_FOLDER = public/src/coffee/
JS_FOLDER = public/js/
COFFEE = $(shell find $(COFFEE_FOLDER) -type f -name '*.coffee')
JS = $(patsubst $(COFFEE_FOLDER)%.coffee, $(JS_FOLDER)%.js, $(COFFEE))
JS_MAP = $(patsubst $(COFFEE_FOLDER)%.coffee, $(JS_FOLDER)%.js.map, $(COFFEE))
.PHONY: all clean
all: $(JS) $(JS_MAP)
@MindTwister
MindTwister / dont_do_this.php
Created December 22, 2010 11:08
Abusing magic methods because you can
<?php
error_reporting(E_ALL);
class O_o
{
public $wth,$mode,$num;
function __construct()
{
$this->wth = "";
$this->mode;