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 ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"crypto/sha256" | |
"encoding/hex" | |
"fmt" | |
"strings" |
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
CLEARSCREEN. | |
//This is our countdown loop, which cycles from 10 to 0 | |
PRINT "Counting down:". | |
FROM {local countdown is 10.} UNTIL countdown = 0 STEP {SET countdown to countdown - 1.} DO | |
{ | |
PRINT "..." + countdown. | |
WAIT 1. // pauses the script here for 1 second. | |
} |
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
CLEARSCREEN. | |
//This is our countdown loop, which cycles from 10 to 0 | |
PRINT "Counting down:". | |
FROM {local countdown is 10.} UNTIL countdown = 0 STEP {SET countdown to countdown - 1.} DO | |
{ | |
PRINT "..." + countdown. | |
WAIT 1. // pauses the script here for 1 second. | |
} |
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
############################################################## | |
## Place a '#' in the 1st column before the variable if you ## | |
#+ don't want to change it from the crouton.conf defaults. ## | |
############################################################## | |
### | |
########################################################################## | |
##* crouton.conf defaults are: ## | |
# DELAY=10 # delay desired number of seconds before starting ## | |
# CHROOT=precise # enter desired chroot to start ## |
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
# Copyright (c) 2015 The crouton Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
## Filename: /etc/init/crouton.conf | |
## crouton chroot - Start session | |
## | |
## This will start a (crouton) chroot Desktop Environment session |
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 org.vaadin.mockapp.samples.crud; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Map; | |
import java.util.Set; | |
import org.vaadin.mockapp.samples.backend.data.Category; |
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
/** | |
* Showcasing a custom FieldGroupGieldFactory that generates an UploadField(from https://vaadin.com/directory#addon/easyuploads) | |
* if the FieldGroup is trying to bind to a byte[] object property. | |
* The image instance is updated each time a new image is uploaded | |
* | |
* Ruiu Gabriel Mihai ([email protected]) | |
*/ | |
public class ImageReplacerFieldGroup extends FormLayout { | |
public ImageReplacerFieldGroup() { |
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
= simple_form_for @post, html: { class: 'form-horizontal' }, defaults: { wrapper: :horizontal_form } do |f| | |
= f.error_notification | |
.form-inputs | |
= f.input :first_name | |
= f.input :last_name | |
= f.input :email | |
.form-actions | |
= f.button :submit |
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
[ | |
%% Riak CS configuration | |
{riak_cs, [ | |
%% == Basic Configuration == | |
%% Riak CS http/https port and IP address to listen at | |
%% for object storage activity | |
{cs_ip, "127.0.0.1"}, | |
{cs_port, 8080 } , |
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
#!/bin/bash | |
# a post-receive hook for git servers to tar the current repo and send to s3 for backup | |
# save as 'post-receive' and put it in .git/hooks of desired repo(s), chmod +x | |
# assumes you have the s3cmd program installed and configured (sudo apt-get install s3cmd) | |
echo "thanks for the push. have a nice day." | |
# configure your S3BUCKET name, the rest should be automatic |
NewerOlder