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
C:\InstantRails\rails_apps\test-gem-bundles>gem list | grep bundler | |
bundler (0.9.6, 0.9.5) | |
C:\InstantRails\rails_apps\test-gem-bundles>cat Gemfile | |
source 'http://gemcutter.org' | |
source 'http://gems.github.com' | |
gem 'rails', '2.3.5', :require => nil | |
gem 'facebooker' |
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
def load(needs = {}) | |
sdir = File.join(Gem.dir, "specifications") | |
# Patch to support multiple Gem directories | |
# gems = Gem::SourceIndex.from_installed_gems(sdir) | |
gems = Gem::SourceIndex.from_installed_gems | |
needs = needs.merge({"gem_plugin" => INCLUDE}) | |
gems.each do |path, gem| | |
# don't load gems more than once | |
next if @gems.has_key? gem.name |
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
--- spork-old.rb Mon Mar 8 10:53:29 2010 | |
+++ spork.rb Mon Mar 8 11:12:32 2010 | |
@@ -107,8 +107,8 @@ | |
@already_ran ||= [] | |
end | |
def expanded_caller(caller_line) | |
- file, line = caller_line.split(":") | |
+ file, line = caller_line.split(/:(\d+)/) | |
line.gsub(/:.+/, '') |
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
input: | |
* name | |
* url | |
* description | |
* categories | |
* tags | |
* pubMonthlyUniqueVisitors | |
* pubMonthlyPageViews |
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
Step = require 'step' | |
callback = (err) -> | |
console.log if err | |
"Handled by callback: #{err.toString()}" | |
else | |
"callback called with no error!" | |
try | |
Step(-> |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
div = document.createElement('div'); | |
div.style.height = '200px'; | |
div.style.background = 'blue'; | |
div.innerText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet mauris tellus. Phasellus nulla dui, commodo a tellus vel, lacinia iaculis mauris. Nullam auctor et risus sit amet interdum. Sed vulputate massa ut bibendum facilisis. Vivamus sapien urna, sodales eget elit interdum, dictum semper purus. Integer placerat blandit feugiat. Ut varius tempor feugiat. Aenean lobortis, turpis non tincidunt volutpat, justo metus viverra elit, aliquet auctor enim nisl ac nisl. Sed a elit fermentum, imperdiet massa ut, condimentum sapien. Interdum et malesuada fames ac ante ipsum primis in faucibus. Praesent vel ipsum massa. Vivamus vitae cursus tellus. Vestibulum aliquam lectus ligula, eu pellentesque arcu egestas eu. Ut vel auctor enim. Nunc lacinia lectus eu ornare euismod. Etiam metus arcu, tempus quis libero a, viverra viverra dolor. Sed condimentum, lacus eu scelerisque facilisis, magna augue vehicul |
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 file is automatically compiled by Webpack, along with any other files | |
// present in this directory. You're encouraged to place your actual application logic in | |
// a relevant structure within app/javascript and only use these pack files to reference | |
// that code so it'll be compiled. | |
import Rails from "@rails/ujs" | |
import Turbolinks from "turbolinks" | |
import * as ActiveStorage from "@rails/activestorage" | |
import "channels" | |
import ReactOnRails from 'react-on-rails'; |
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(gAECommandLineRenderer){ | |
// Edit > Templates > Render Settings... | |
var BASE_RENDER_SETTINGS_TEMPLATE = "Best Settings"; | |
var RENDER_SETTINGS_TEMPLATES_TO_CREATE = { | |
"Fast (Editing)": { | |
"Resolution": "Quarter", | |
"Use this frame rate": 12, | |
"Motion Blur": "Off for All Layers", | |
"Color Depth": "8 bits per channel" | |
}, |
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 "csv" | |
desc "Create Tags in Bulk" | |
task :bulk_create_feed_tags, [:filename] => :environment do |t, args| | |
filename = args[:filename] | |
CSV.read(filename, headers: true).each do |row| | |
puts "Processing placement: #{row["Placement Name"]}..." | |
feed_name = row["Spaceback Feed Name"] |