Skip to content

Instantly share code, notes, and snippets.

View s-e's full-sized avatar

Sam Evaskitas s-e

View GitHub Profile

Keybase proof

I hereby claim:

  • I am s-e on github.
  • I am samevaskitas (https://keybase.io/samevaskitas) on keybase.
  • I have a public key whose fingerprint is EA26 8ECD B508 E70E 733F 136C E8A1 1FDB 4063 B228

To claim this, I am signing this object:

@s-e
s-e / fizzbuzz.hs
Created January 1, 2014 06:27
fizzbuzz.hs
fizzBuzzer :: (Integral a, Show a) => a -> [Char]
fizzBuzzer x
| ((x `mod` 3 == 0) && (x `mod` 5 == 0)) = "FizzBuzz"
| (x `mod` 3 == 0) = "Fizz"
| (x `mod` 5 == 0) = "Buzz"
| otherwise = show x
main :: IO ()
main = mapM_ putStrLn [ fizzBuzzer x | x <- [1..100]]
@s-e
s-e / composer.pp
Last active December 27, 2015 10:18
joindin::composer() {
exec { 'composer':
command => "/usr/bin/curl -sS https://getcomposer.org/installer | /usr/bin/php && \
mv composer.phar /usr/local/bin/composer",
require => [Package['php'], Package['php-pear']],
creates => "/usr/local/bin/composer",
}
}
<?xml version="1.0" encoding="UTF-8"?>
<data>
<products>
<entry id="1">
<name>Test</name>
<public-price>10.00</public-price>
<trade-price>8.00</trade-price>
</entry>
<entry id="2">
<name>Test</name>
<?php
Class extension_ownlogin extends Extension{
public function getSubscribedDelegates() {
return array(
array(
'page' => '/backend/',
'delegate' => 'AdminPagePreGenerate',
'callback' => 'changeLoginForm'
<?xml version="1.0" encoding="utf-8" ?>
<data>
<params>
<today>2012-01-30</today>
<current-time>22:13</current-time>
<this-year>2012</this-year>
<this-month>01</this-month>
<this-day>30</this-day>
<timezone>+00:00</timezone>
<website-name>Seddon Group</website-name>