Skip to content

Instantly share code, notes, and snippets.

View elricstorm's full-sized avatar

Joel Dezenzio elricstorm

View GitHub Profile
@elricstorm
elricstorm / keyring.rb
Created January 29, 2022 22:21
Key ring script
=begin
Your lock key ring correction
=end
hide_me
loop do
lastLine = get
gem 'kaminari' # Pagination
def verify_zong_signature(params)
require 'openssl'
require 'base64'
require 'cgi'
# Pull the original signature
signature = params[:signature]
# ensure that all of the parameters remain encoded
@elricstorm
elricstorm / rails4windows
Last active December 30, 2015 16:09
Rails For Windows Automation Script
$webpifeed="https://www.microsoft.com/web/webpi/4.6/webproductlist.xml"
# update chocolatey to the latest version
chocolatey update
# update all chocolatey packages
cup all
# 7zip
cinst 7zip
@elricstorm
elricstorm / rails4stacktest
Created November 18, 2013 02:53
Rails4Stack Test
# START http://boxstarter.org/package/url?
# update chocolatey to the latest version
chocolatey update
# update all chocolatey packages
cup all
# Show hidden files/folder and file extensions
Set-ExplorerOptions -showHidenFilesFoldersDrives -showFileExtensions
<%= stylesheet_link_tag 'mobile/jquery.mobile-1.0.1.min', 'mobile/mobile' %>
<%= javascript_include_tag 'mobile/respond.min' %>
<%= javascript_include_tag 'mobile/jquery', 'mobile/jquery_ujs', "https://js.stripe.com/v1/", 'orders' %>
<%= javascript_include_tag 'mobile/jquery.mobile-1.0.1.min' %>
<%= csrf_meta_tag %>
<%= tag :meta, :name => "stripe-key", :content => STRIPE_PUBLIC_KEY %>
gem 'bcrypt-ruby'
<style>
span.title {
display: block;
text-align: center;
margin-top: 10px;
margin-bottom: 20px;
}
</style>
<div data-role="page" id="sitetips" data-title="Dialog Tips">
def dwarf
dwarf = Race.find(2)
gon.dwarf_con_min = (gon.constitution + dwarf.bon_con) - 10
gon.dwarf_con_val = gon.constitution + dwarf.bon_con
gon.dwarf_dex_min = (gon.dexterity + dwarf.bon_dex) - 10
gon.dwarf_dex_val = gon.dexterity + dwarf.bon_dex
gon.dwarf_div_min = (gon.divinity + dwarf.bon_div) - 10
gon.dwarf_div_val = gon.divinity + dwarf.bon_div
gon.dwarf_int_min = (gon.intellect + dwarf.bon_int) - 10
gon.dwarf_int_val = gon.intellect + dwarf.bon_int
<% @data.each do |data| %>
<p><%= data.something %></p>
<p><%= data.something_else %></p>
<% end %>