This file contains hidden or 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
class system-update { | |
exec { 'apt-get update': | |
command => 'apt-get update', | |
path => ['/usr/bin', '/bin', '/usr/sbin', '/sbin'], | |
} | |
Exec['apt-get update'] -> Package<| |> # before all packages | |
$sysPackages = [ "build-essential", "nmap", "skipfish", "curl", "libcurl4-openssl-dev" ] | |
package { $sysPackages: |
This file contains hidden or 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
void writeFoo(File file, Structure data) throws IOException { | |
try (OutputStream fout = new FileOutputStream(file)) { | |
writeHeader(fout); // writeHeader is marked 'throws IOException' and contains no try/catch | |
writeContent(fout, data); // ditto | |
} | |
} |
This file contains hidden or 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
create table if not exists "Products_productindexwords" ( | |
word varchar primary key | |
); | |
do $do$ | |
begin | |
create temporary table words ( | |
tsv tsvector | |
) on commit drop; |
This file contains hidden or 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
@media (max-width: 767px) { | |
// cribbed from http://ansciath.tumblr.com/post/7347495869/css-aspect-ratio | |
// and also #comment-764668376 on that page. Horrifying CSS. | |
#map-container { | |
display: inline-block; | |
position: relative; | |
} | |
#map-container:before { | |
content: ""; |
This file contains hidden or 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
e5963c8de50017cb010a71ef52de73d9b2a1742d HEAD | |
e5963c8de50017cb010a71ef52de73d9b2a1742d refs/heads/master | |
c0b79fe2f9556eaec3de86ef0633a8cc26aa1359 refs/pull-requests/1/from | |
437a9c8f9c0653c5cd18c83bbdfbf05376e82b3b refs/pull-requests/1/merge | |
437a9c8f9c0653c5cd18c83bbdfbf05376e82b3b refs/pull-requests/1/merge-clean | |
dddc2c2e28d50a4a5b7be6b863420cfbfe084927 refs/pull-requests/1/to |
This file contains hidden or 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
<!DOCTYPE schema SYSTEM "XMLSchema.dtd" [ | |
<!ENTITY % p ''> | |
<!ENTITY % s ''> | |
]> | |
<schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns="http://www.w3.org/2001/XMLSchema"> |
This file contains hidden or 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/local/git/contrib/completion/git-completion.bash | |
. "$HOME/Console/git/git-prompt.sh" | |
GIT_PS1_SHOWDIRTYSTATE=true | |
GIT_PS1_SHOWUNTRACKEDFILES=true | |
ps1_status() { | |
if [ $? -ne 0 ]; then | |
echo ":(" | |
else | |
echo ":)" |
This file contains hidden or 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.example.estobhan; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
public class TimerExample { | |
private static final long PERIOD = 5000; | |
public static void main(String[] args) { | |
final Timer timer = new Timer(); |
This file contains hidden or 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
__author__ = 'idcmp' | |
import json | |
def handle_westie_results(results): | |
print results | |
dancers = {} | |
success = 0 |
This file contains hidden or 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
class gitolite { | |
group { 'git': | |
ensure => present, | |
system => true, | |
} | |
user { 'git': | |
ensure => present, | |
system => true, | |
gid => git, |