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
package main | |
import "code.google.com/p/go.crypto/ssh" | |
func main() { | |
ExampleListen() | |
} | |
func ExampleListen() { | |
// An SSH server is represented by a ServerConfig, which holds |
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
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) | |
;;; from purcell/emacs.d | |
(defun require-package (package &optional min-version no-refresh) | |
"Install given PACKAGE, optionally requiring MIN-VERSION. | |
If NO-REFRESH is non-nil, the available package lists will not be | |
re-downloaded in order to locate PACKAGE." | |
(if (package-installed-p package min-version) |
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
ArraySeq( | |
Map(access.redhawk.org -> Map(blacklisted -> false, result -> List())), | |
Map(b.barracudacentral.org -> Map(blacklisted -> false, result -> List())), | |
Map(bl.shlink.org -> Map(blacklisted -> false, result -> List())) | |
) |
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
package com.joshrendek.scalabgp | |
import org.openqa.selenium.htmlunit._ | |
import scala.collection.JavaConversions._ | |
import org.openqa.selenium.By | |
case class ASMeta(as: String, name: String) | |
object AutonomousSystem { |
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
import play.api.Logger | |
import play.api.mvc.{Result, RequestHeader, Filter} | |
object AccessLog extends Filter { | |
override def apply(next: RequestHeader => Result)(request: RequestHeader): Result = { | |
val result = next(request) | |
Logger.info(request + "\n\t => " + result) | |
result | |
} | |
} |
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
Insert the following code into the *.VMX file: | |
sched.mem.pshare.enable = "FALSE" | |
mainMem.useNamedFile = "FALSE" | |
prefvmx.minVmMemPct = "100" | |
prefvmx.useRecommendedLockedMemSize = "TRUE" | |
mainMem.partialLazySave = "FALSE" | |
mainMem.partialLazyRestore = "FALSE" | |
priority.grabbed = "high" | |
priority.ungrabbed = "normal" |
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
#include <iostream> | |
#include <map> | |
#include <iterator> | |
#include <math.h> | |
#include <unistd.h> | |
using namespace std; | |
std::map<int, int> Cache; |
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
-- ~/.xmonad/xmonad.hs | |
-- Imports {{{ | |
import XMonad | |
-- Prompt | |
import XMonad.Prompt | |
import XMonad.Prompt.RunOrRaise (runOrRaisePrompt) | |
import XMonad.Prompt.AppendFile (appendFilePrompt) | |
-- Hooks | |
import XMonad.Operations | |
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
" This is Gary Bernhardt's .vimrc file | |
" with mods for Josh Rendek | |
" vim:set ts=2 sts=2 sw=2 expandtab: | |
call pathogen#runtime_append_all_bundles() | |
set clipboard=unnamed | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" BASIC EDITING CONFIGURATION |
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
c = Contact.new(first_name: 'First', last_name: 'Last', middle_initial: 'M', contact_owner_id: 1, status: 'open', :due_on => Date.today, :subject => subj) | |
c.should_receive(:set_category_based_on_subject) | |
c.save(:validate => false) |