Skip to content

Instantly share code, notes, and snippets.

View krusty's full-sized avatar

Lucas Sallovitz krusty

View GitHub Profile
Request URL:http://sandbox.catalogchoice.org/v1/catalog_choices/
Request Method:POST
Status Code:201 Created
Request Headersview source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Authorization:OAuth e0bmng74d6zevlyq4gngpf11n
Connection:keep-alive
Dear <%[email protected]%>,><%="\r\n"%>
I am writing to have you remove the following name and address from the <%[email protected]%><%="\r\n"%>
postal mailing list and cease to rent or trade the contact information with any other organization.<%="\r\n"%><%="\r\n"%>
<%[email protected]_name %><%="\r\n"%>
<%= @mailbox.company_name %><%="\r\n"%>
<%=\"Customer Number: \#{@optout.customer_number}\" %><%="\r\n"%>
<%=\"Source Code: \#{@optout.customer_source_code}\" %><%="\r\n"%>
<%[email protected] %><%="\r\n"%>
# base class for cached templates from the database
# each template has to be uniquely identified by its _name_ and _language_
module CachedTemplate
# get a template _name_ in _language_
# if the template can not be found in the right language,
# use english and any language as fallback
def self.find_by_language_and_name(klass,_language, _name)
[_language, "en", nil ].each do |lang|
conditions = {:name => _name}
conditions[:language] = lang if lang
{"request_error":"compile error\n(erb):1: syntax error, unexpected $undefined\n...at \"\\\\r\\\\n\"; _erbout.concat((\\\"Customer Number: \\#{@optout.c...\n ^\n(erb):1: syntax error, unexpected $undefined, expecting ')'\n...}\\\" ).to_s); _erbout.concat \"\\\\r\\\\n\"; _erbout.concat((\\\"Sour...\n ^\n(erb):1: syntax error, unexpected $undefined, expecting ')'\n...}\\\" ).to_s); _erbout.concat \"\\\\r\\\\n\"; _erbout.concat((@mailb...\n ^\n(erb):1: syntax error, unexpected $undefined, expecting ')'\n...ss1 ).to_s); _erbout.concat \"\\\\r\\\\n\"; unless @mailbox.addre...\n ^\n(erb):1: syntax error, unexpected $undefined, expecting ')'\n...n\\\" ).to_s); _erbout.concat \"\\\\r\\\\n\"; end ; _erbout.concat ...\n ^\n(erb):1: syntax error, unexpected $undefined, expecting ')'\n...\\\\n\"; end ; _erbout.concat \"\\\\r\\\\n\"; _erbout.concat((@mailb...\n ^\n(erb):1: syntax error, unexpected $undefined\n...ty ).to_s); _erbout.concat \",\\\\r\\\\n\"; _erbout.concat((@mailb...\n ^\n(erb):1: syntax error, unexpected $un
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum errors before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : false,
lucas@kid-c:~/proyects/ccMainline/public/widget/nyc$ git status
# On branch r180
# Your branch is ahead of 'origin/release/r180' by 1 commit.
#
nothing to commit (working directory clean)
lucas@kid-c:~/proyects/ccMainline/public/widget/nyc$ git push
Everything up-to-date
@krusty
krusty / placeholder.html
Created October 5, 2012 13:56
placeholder styles
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Placeholder</title>
<style type="text/css" media="screen">
input {
font-weight: bolder;
color: red;
}
Request URL:http://www.local.cc:3000/oauth2/access_token
Request Headersview source
Access-Control-Request-Headers:origin, x-requested-with, x-client, content-type, accept
Access-Control-Request-Method:POST
Cache-Control:no-cache
Origin:http://local.cc:3000
Pragma:no-cache
SQL (0.2ms) SET NAMES 'utf8'
SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
ConfigurationValue Columns (0.9ms) SHOW FIELDS FROM `configuration_values`
ConfigurationValue Load (0.5ms) SELECT * FROM `configuration_values` WHERE (`configuration_values`.`key` = 'active_set' AND `configuration_values`.`configuration_set` = 'defaults') LIMIT 1
ConfigurationValue Load (0.4ms) SELECT * FROM `configuration_values` WHERE (`configuration_values`.`key` = 'optouts_sender' AND `configuration_values`.`configuration_set` = 'defaults') LIMIT 1
ConfigurationValue Load (0.4ms) SELECT * FROM `configuration_values` WHERE (`configuration_values`.`key` = 'active_set' AND `configuration_values`.`configuration_set` = 'defaults') LIMIT 1
ConfigurationValue Load (0.5ms) SELECT * FROM `configuration_values` WHERE (`configuration_values`.`key` = 'optouts_reply_to' AND `configuration_values`.`configuration_set` = 'defaults') LIMIT 1
Merchant Columns (2.4ms) SHOW FIELDS FROM `merchants`
Ext.define("CC.view.Settings", {
extend: 'Ext.Panel',
xtype: 'settingspanel',
requires: [
'Ext.dataview.List'
],
config: {
title: "Settings",