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
Homebrew build logs for postgresql@12 on Ubuntu 20.04.1 LTS | |
Build date: 2020-12-01 13:50:05 |
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
Homebrew build logs for postgis on Ubuntu 17.10 | |
Build date: 2019-08-07 15:47:49 |
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
Rake::Task["db:structure:dump"].clear | |
namespace :db do | |
namespace :structure do | |
desc "Overriding the task db:structure:dump task to remove -i option from pg_dump to make postgres 9.5 compatible" | |
task :dump => [:environment, :load_config] do | |
config = current_config | |
filename = ENV['DB_STRUCTURE'] || File.join(Rails.root, "db", "structure.sql") | |
case config['adapter'] | |
when /mysql/, 'oci', 'oracle' | |
ActiveRecord::Base.establish_connection(config) |
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
function() | |
local unit = nil | |
local group_type = "" | |
local group_size = 0 | |
if IsInRaid() then | |
group_type = "raid" | |
group_size = 40 | |
elseif IsInGroup() then | |
group_type = "party" |
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
RewriteEngine on | |
RewriteCond %{THE_REQUEST} /(.*)\.s?html | |
RewriteRule ^.*$ /%1 [R=301,L] | |
RewriteCond %{REQUEST_FILENAME}\.shtml -f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*/?[\w\d\-]+)$ $1.shtml [L] |
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
### | |
I don't advise trying to edit this file directly. This was coded using coffeescript. | |
Coffeescript source here: https://gist.github.com/3779098 | |
### | |
`function onOpen(){}` | |
`function populateProfile(){}` | |
`function clearUpgradeFields(){}` | |
`function clearAllFields(){}` | |
`function spreadsheetName(){}` |
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
start | |
declarations | |
arrFull_Deck [2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14] | |
arrP1_hand [ ] | |
arrP2_hand [ ] | |
arrTable [ ] | |
num Full_DeckCardCount = 52 | |
num Table = 0 | |
num P1_CardValue | |
num P2_CardValue |
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
start | |
declarations | |
arrFull_Deck [2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14] | |
arrP1_hand [ ] | |
arrP2_hand [ ] | |
arrTable [ ] | |
num Full_DeckCardCount = 52 | |
num Table = 0 | |
num P1_CardValue | |
num P2_CardValue |
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
# <-- This is a comment | |
# Array of cards: | |
arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
# and the player's current hand: | |
my_hand = [] | |
# In ruby it can also be written like this: | |
# arr = [1..10] | |
# Now let's get a random value from the array (deck of cards): |
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
# file_1.rb | |
#----------------------------- | |
require 'file_2' | |
where_am_i() | |
#----------------------------- | |
# file_2.rb | |
#----------------------------- |
NewerOlder