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
A wrapper contains "elements" (think of an XML element). | |
A wrapper has "slides" (variations on the elements within it). | |
An element might exist on every slide of the wrapper (on the 'master slide'), | |
or it might exist only on one of the slides. | |
An element has attributes. | |
* When an element exists only on a particular slide, the attributes also exist | |
only on that slide. There is only one value for each attribute. |
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
Rammy:RUIC phrogz$ gem help build | |
Usage: gem build GEMSPEC_FILE [options] | |
[...] | |
Common Options: | |
[...] | |
-q, --quiet Silence commands | |
[...] | |
Rammy:RUIC phrogz$ gem build ruic.gemspec -q | |
Successfully built RubyGem |
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 Ancestor | |
@props = {a:1, b:1, c:1} | |
def self.merged | |
(ancestors[1].respond_to?(:merged) ? ancestors[1].merged : {}).merge(@props) | |
end | |
end | |
class Child < Ancestor | |
@props = {a:2} | |
end |
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
puts :bar1 | |
require_relative '../lib' | |
puts :bar2 |
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
peers = { | |
node1: :node2, | |
node2: :node1, | |
node3: :node4, | |
node4: :node3 | |
} | |
describe 'peers' do | |
peers.each do |a,b| | |
it "should have #{b} as a peer", if: Socket.gethostname=="#{a}.vagrantup.com" do |
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
USAGE = <<ENDUSAGE | |
Usage: | |
docubot [-h] [-v] [create [-s shell] [-f]] directory [-w writer] [-o output_file] [-n] [-l log_file] | |
ENDUSAGE | |
HELP = <<ENDHELP | |
-h, --help Show this help. | |
-v, --version Show the version number (#{DocuBot::VERSION}). | |
create Create a starter directory filled with example files; | |
also copies the template for easy modification, if desired. |
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
-- $ ./autotest.lua test579.scxml | |
enterStates( enabledTransitions:{ <transition target='s0' external> } ) | |
computeEntrySet( transitions:{ <transition target='s0' external> }, ... ) | |
addDescendantStatesToEnter( state:<state id=s0>, ... ) | |
statesToEnter:add( <state id=s0> ) | |
getEffectiveTargetStates( transition:<transition target='sh1' external> ) | |
getEffectiveTargetStates( transition:<transition target='s01' external> ) | |
-- getEffectiveTargetStates result: { <state id=s01> } | |
-- getEffectiveTargetStates result: { <state id=s01> } | |
addDescendantStatesToEnter( state:<state id=s01>, ... ) |
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
-------+------------------------------------------------------------------------------- | |
-- ct | code ------------------------------------------------------------------------- | |
-------+------------------------------------------------------------------------------- | |
120 local LXSC = require 'lib/lxsc'; | |
*****0 (function(S) | |
120 S.MAX_ITERATIONS = 1000 | |
120 local OrderedSet,Queue,List = LXSC.OrderedSet, LXSC.Queue, LXSC.List | |
-- **************************************************************************** | |
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
!!! 5 | |
%html | |
%head | |
%meta(charset="utf-8") | |
%title Page Title | |
%meta(name="author" content="") | |
%meta(name="description" content="") | |
%meta(name="revisit-after" content="3 days") | |
%link(href="http://creativecommons.org/licenses/by/4.0/" rel="license" title="Creative Commons Attribution License") | |
%link(href="/css/screen.css" media="screen" rel="stylesheet") |
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
local lua = [[{ | |
["hello"]="there\nworld", | |
["array"]={1,2,3,1e6,{["more"]=false},nil,true}, | |
["more"]={ | |
["hello"]="there\nworld", | |
["array"]={1,2,3,1e6,{["more"]=false},nil,true}, | |
["more"]={ | |
["hello"]="there\nworld", | |
["array"]={1,2,3,1e6,{["more"]=false},nil,true}, | |
["more"]={ |