Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
<?php | |
/** | |
* Ranking Library | |
* contains alogrithms for story ranking | |
* Basically a PHP Implementation of reddits algorithms | |
* | |
* @author Lucas Nolte <[email protected]> | |
* @since 0.1 | |
* @package Polska Wiadomosc | |
* @subpackage Libraries |
implementing user authentication with bcrypt in ChicagoBoss.
see http://shanelogsdon.com/erlang/implementing-user-authentication-with-bcrypt-in-chicagoboss
I hereby claim:
To claim this, I am signing this object:
<?php | |
$socket = socket_create(AF_INET, SOCK_STREAM, 0) or die('Failed to create socket!'); | |
socket_bind($socket, 0, 3000); | |
socket_listen($socket); | |
$msg = '<html><head><title>Hello, world!</title></head><body>Hello, world!</body></html>'; | |
for (;;) { | |
if ($client = socket_accept($socket)) { |
defmodule OfflineDocs do | |
def parse_dep({dep, constraint}) when constraint |> is_binary, do: parse_dep({dep, constraint, []}) | |
def parse_dep({dep, options}) when options |> is_list, do: parse_dep({dep, "", []}) | |
def parse_dep({dep, _contraint, options}) do | |
if options[:only] == nil or options[:only] == Mix.env do | |
[dep: dep] | |
else | |
nil | |
end | |
end |
module Temp where | |
import System.Directory | |
path :: String | |
path = "/Users/shane.logsdon/Code/haskell/slogsdon.com/provider/posts/" | |
files :: IO [FilePath] | |
files = getDirectoryContents path |
# Basic setup to copy Wordpress files, | |
# expected to be at '.', into the image | |
FROM orchardup/php5 | |
ADD . /code |
<?php | |
class ServiceContainer | |
{ | |
private static $services; | |
private static $generators; | |
public function __construct() | |
{ | |
self::$services = []; |
{-#LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Data.Monoid | |
import Data.Text (Text, pack) | |
import Web.Spock.Safe | |
main :: IO () | |
main = | |
runSpock 3000 $ spockT id $ |