z
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
# with reference to rendered output but the OP | |
# https://www.reddit.com/r/mathpics/comments/3yzu77/heres_an_animated_version_of_that_circular/ | |
# and a video guide | |
# https://www.youtube.com/watch?v=qhbuKbxJsk8 | |
require "rmagick" | |
RESOLUTION = 800 | |
def localToGlobalCoords(n) |
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
#!/usr/bin/ruby | |
lines = IO.readlines($0) << (DATA.readlines << ARGV[0]) | |
File.open($0, 'w') { |file| file.puts lines } | |
__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
<canvas id = "c" > </canvas> | |
<p> | |
Tear the cloth with your mouse.<br><br> | |
Right click and drag to cut the cloth.<br><br> | |
Reduce physics_accuracy if it's laggy, increase it for a better effect. | |
</p> |
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
#!/usr/bin/env ruby | |
require 'fileutils' | |
path_base = ARGV[0] || '~/Sources' | |
server_path = ARGV[1] | |
repo_list = ARGV[2] || 'svn_repo_list' | |
svn_dir = File.expand_path File.join(path_base,'/svn') | |
git_dir = File.expand_path File.join(path_base,'/git') | |
unless File.exists? auth_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
--- | |
:mailboxes: | |
- | |
:email: "my_gmail_user@gmail.com" | |
:password: "pasword" | |
:name: "inbox" | |
# :name: "BIZ/Career" | |
:delivery_method: logger | |
:log_path: "/var/www/rails/test_app/log/email.log" | |
# :delivery_url: "http://www.test_app.com/for/my_gmail_user/collect" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.myapp</string> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>KeepAlive</key> | |
<true/> |
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
#!/usr/bin/env ruby | |
bl = `brew list`.split ;1 | |
bdl = bl.reduce({}) {|h, pkg| h.merge({pkg => `brew deps #{pkg}`.split }) } ;1 | |
bi = bl - bdl.values.flatten.sort | |
File.open('apps_brew.txt', 'w') {|f| f.write bi.join("\n") } |
〰️ 〰️ 〰️ 〰️ 🔱 〰️ 〰️ 〰️ 〰️
〰️ 〰️ 〰️ 🔥 🌀 🍃 〰️ 〰️ 〰️
〰️ 〰️ 🔥 〰️ ☁️ 〰️ 🍃 〰️ 〰️
〰️ 〰️ 🔥 〰️ ⚡ 〰️ 🍃 〰️ 〰️
〰️ 〰️ 〰️ 🔥 🎶 🍃 〰️ 〰️ 〰️
The situation arose where our Certifier gem would not bundle install
Could not find gem 'rspec-core (= 2.5.1, runtime)' in any of the gem sources listed in your Gemfile.
Our gemserver (non-rubygems) only had
- rspec-core-2.6.4.gem
- rspec-core-2.8.0.gem
Analysis: someone had an old gem installed via rubygems, and didn't run bundle update when building the latest certifier. This used to be solved by maintaining the full-history of dependencies on our gemserver.