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/sh | |
ssh-keygen | |
cat .ssh/id_rsa.pub | |
echo "Waiting for you to add keys..." | |
read dummy | |
sudo apt-get update | |
sudo apt-get install ruby -y | |
sudo apt-get install ruby1.8-dev -y | |
sudo apt-get install ruby1.9 -y | |
sudo apt-get install ruby1.9-dev -y |
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
# no OOP | |
value = "a" #somewhere else | |
if value == "a" | |
print "a!" | |
elsif value == "b" | |
print "b!" | |
elsif value == "c" | |
print "c!" |
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
using System.Windows; | |
namespace WpfApplication1 | |
{ | |
public partial class App : Application | |
{ | |
protected override void OnStartup(StartupEventArgs e) | |
{ | |
base.OnStartup(e); | |
var viewmodel = new TestViewModel(new TestWindow()); |
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
require 'rubygems' | |
require 'libglade2' | |
class GtkDefinition | |
attr_reader :definition | |
def initialize | |
@definition = '<?xml version="1.0"?> | |
<interface> |
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
class MangaViewModel < FreightViewModel | |
signal :update_progress | |
region :mangas | |
region :chapters | |
region :page | |
region :control_box |
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
class CLF(object): | |
#snip | |
def handle_cl(self): | |
#snip | |
if params and params[0]: | |
self.__input_stream = FileStream(params[0], 'r') | |
else: | |
self.__input_stream = IOStream(sys.stdin) |
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
#viewmodel file (my_view_model.rb, in /viewmodels) | |
class MyViewModel < FreightViewModel | |
def my_list | |
return ['my', 'list', 'of', 'strings'] | |
end | |
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
class Test | |
attr_reader :value | |
def self.value_by_block(&block) | |
@evaluator = block | |
end | |
def initialize | |
@value = self.class.instance_variable_get(:@evaluator).call |
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
A = 14 | |
SPADES = :s | |
DIAMONDS = :d | |
HEARTS = :h | |
CLUBS = :c | |
SUITS = [SPADES, DIAMONDS, HEARTS, CLUBS] | |
class Card |
This file has been truncated, but you can view the full file.
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
apiVersion: argoproj.io/v1Alpha | |
kind: Workflow | |
metadata: | |
generateName: job-10066- | |
spec: | |
entrypoint: job-10066 | |
onExit: finalizer | |
templates: | |
- name: log-handler | |
container: |
OlderNewer