Skip to content

Instantly share code, notes, and snippets.

{
"query": {
"filtered": {
"filter": {
"and": [
{
"and": [
{
"or": [
{
foo_plan:
FOO_ID: 1
bar_group:
FOO_ID: foo_plan #doesn't work
FOO: foo_plan #doesn't work
FOO_ID: 1 #works but not ideal
Rails.application.eager_load! #ensure all controllers are loaded
ApplicationController.descendants.each do |controller|
puts "#{controller.name}"
end
class ApplicationController < ActionController::Base
@@page_title = nil
def self.set_title(page_title)
@@page_title = page_title
end
def page_title
ignore_for = %w{sessions devise}
:template{id: "foo"}
.this
.that.somethingelse
%h1 Title
.body
some text {{foo}}
Jennifer: Thank you for contacting ThinkGeek! My name is Jennifer. How can I help you today?
David Herman: Trying to determine if I order something if it will make it by the 25th and what shipping method I can chose
David Herman: *choose
David Herman: order number is 64eaf9c02
David Herman: hello?
Jennifer: Hi sorry to keep you waiting. Let me check on that.
David Herman: that's ok, I'm guessing you guys are a tad busy ;)
Jennifer: The status is incomplete. Do you want me to complete your order David. Sorry fore the inconvenience.
David Herman: No, I want to know what type of shipping I would need to do to get it here before the 25th
Jennifer: Do you want me to expedite the method?
USE eshadata
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE insert_or_update_common_name
-- Add the parameters for the stored procedure here
Problem: Virgin common runs apt-get update, writes a file named apt-get.updated, but it only runs apt-get update once, if apt-get-updated does not exist
It only runs apt-get update then installs a list of packages