This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stuff setting up moose and the environment omitted | |
sub BUILD { | |
my $self = shift; | |
my $application_environment = $ENV{'APPLICATION_ENVIRONMENT'}; | |
my $conf = new Config::General($self->config_file); | |
my %config = $conf->getall; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; go-template-mode.el --- Major mode for Go template language | |
;;; Commentary: | |
;; 1) Copy this file somewhere in your Emacs `load-path'. To see what | |
;; your `load-path' is, run inside emacs: C-h v load-path<RET> | |
;; | |
;; 2) Add the following to your .emacs file: | |
;; | |
;; (require 'go-template-mode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
"""myprofiler - Casual MySQL Profiler | |
https://github.com/methane/myprofiler | |
""" | |
import os | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use LWP::UserAgent; | |
my $app = do { | |
use Mojolicious::Lite; | |
get '/' => sub { shift->render(text => "Hello World") }; | |
get '/search' => sub { | |
my $self = shift; | |
my $foo = $self->param('q'); | |
$self->render(text => "You searched $foo"); |
NewerOlder