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 'squib' | |
data = {'name' => ['Thief', 'Grifter', 'Mastermind'], | |
'type' => ['Thug', 'Thinker', 'Thinker'], | |
'level' => [1,2,3]} | |
Squib::Deck.new(width: 825, height: 1125, cards: 3) do | |
# Default range is :all | |
background color: :white | |
text str: data['name'], x: 250, y: 55, font: 'Arial 54' |
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 'squib' | |
# Save our poker cards to the template used by PNP Productions (http://www.printplaygames.com/) | |
Squib::Deck.new(cards: 20, layout: 'pnp_productions.yml') do | |
rect layout: :poker_cut# cut | |
rect layout: :poker_safe | |
text str: (%w(This is some example text) * 4) | |
# save_png range: 0, dir: '.' |
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
gem 'squib', git: 'git://github.com/andymeneely/squib', branch: 'dev' | |
gem 'guard' |
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
_output/*.png | |
_output/*.pdf | |
~$* | |
.DS_Store |
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 'squib' | |
# This sample demonstrates the built-in layouts for Squib. | |
# Each card demonstrates a different built-in layout. | |
Squib::Deck.new(layout: 'fantasy.yml') do | |
background color: 'white' | |
set font: 'Times New Roman,Serif 32' | |
hint text: '#333' # show extents of text boxes to demo the layout |
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
*.png | |
!_text_00_expected.png |
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
*.png | |
!part*_expected.png |
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 'squib' | |
Squib::Deck.new do | |
rect | |
text | |
save_png | |
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
*.png | |
!ball.png | |
!grit.png | |
!sprites.png | |
!with-alpha.png | |
!_images_00_expected.png | |
!shiny-purse.png |
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 'json' | |
require 'pp' | |
# To run this, create a directory called "export" in the current directory. | |
# Get admin access to Slack | |
# Get an export of the data. | |
# This will search export/standup/*.json files | |
users = { | |
'U0AB5BETT' => 'andymeneely', |