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
from ubuntu:14.04 | |
run apt-get update | |
run apt-get install -y docker.io | |
run ln -sf /usr/bin/docker.io /usr/local/bin/docker | |
add run.sh /usr/local/bin/run | |
entrypoint ["/usr/local/bin/run"] |
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
#cloud-config | |
ssh_authorized_keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCfAoOymBIL1VuLdaYmyj5NiSUADcodl0Q61LjZ5Et8xCdww/TqeYKY5mcsza1A3XTDKqM9gDqzkRHzCSolh/nTOh5RoEjgJnyTIFlVgz85N2N6ylh0urWf4WGZkqSzutKmzXU9bo/rnqWbJXVahBY+99rt+27aVl2i9Qbft4CFDxHrwHrphLyrwEPIJeBdOT9fivU0d/4uvhnaR2FEyolW38pmKOy5coJmAQXWJXVePJQ5vc7jiqt9IKgYqa6mjpPsblgaOLOhi8aArrA/luHd3bJ6QQ9C4UPX9JyZKId+dvPFzqdEvx/nLSX881p0ekFGFI9+pkXpnHIDY9t21OgR | |
groups: | |
coreos: | |
fleet: | |
public-ip: 10.32.219.85 | |
metadata: env=alpha | |
etcd: |
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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "centos6.5" | |
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box" | |
config.vm.post_up_message = "vagrant ssh - will log you into the machine\nvagrant package --base base --output ../base.box - will create a retel-base vagrant box" | |
config.vm.provider :virtualbox do |v, override| | |
v.name = "base" | |
end |
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
(ns euler.problem19) | |
(defn isleapyear?[yr] | |
(and (not (zero? (mod yr 100))) (= 0 (mod yr 4)))) | |
(def nonleapmonths [31 28 31 30 31 30 31 31 30 31 30 31]) | |
(def leapmonths [31 29 31 30 31 30 31 31 30 31 30 31]) | |
(defn getfirstmonthdays [yr] | |
(loop [index 0 |
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
in ou project we use the following Binding and works perfectly. | |
<netTcpBinding> | |
<binding name="netTcpBinding" | |
receiveTimeout="Infinite"> | |
<reliableSession inactivityTimeout="00:00:10" | |
enabled="true" /> | |
</binding> | |
</netTcpBinding> | |
This is equal to the following code |
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
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text"/> | |
<xsl:template match="/"> | |
<xsl:apply-templates /> | |
</xsl:template> | |
<xsl:template match="Invoice"> | |
<xsl:for-each select="Item_List/Item"> | |
<xsl:apply-templates select="/Invoice/*[not(self::Item_List) and not(self::TouchLess)]" /> | |
<xsl:apply-templates select="/Invoice/TouchLess"/> |
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 helpers | |
import play.api.data._ | |
import play.api.data.format._ | |
import java.math.BigDecimal | |
import play.api.data.format.Formats._ | |
import play.api.data.Forms._ | |
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
;; in git, version 1 | |
(server-start) | |
(tool-bar-mode 0) | |
(menu-bar-mode 0) | |
(add-to-list 'load-path "~/.emacs.d") | |
(require 'emacslocal) | |
(require 'recentf) | |
(recentf-mode 1) | |
(require 'google-search) |
NewerOlder