Skip to content

Instantly share code, notes, and snippets.

View krusty's full-sized avatar

Lucas Sallovitz krusty

View GitHub Profile
Request URL:https://sandbox.catalogchoice.org/oauth2/access_token
Request Method:POST
Status Code:302 Found
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
Connection:keep-alive
Content-Length:114
lucas@(none):~/proyects/ccapps/src/trainer$ ./run.sh form_training_set2.csv result.json
Parsing CSV
> Opening form_training_set2.csv
>> Parsed http://www.windowworld.com/contact.php TRUE
/home/lucas/proyects/ccapps/src/trainer/csv_parser.js:25
fs.appendFile(tmp_file, params);
^
TypeError: Object #<Object> has no method 'appendFile'
at [object Object].<anonymous> (/home/lucas/proyects/ccapps/src/trainer/csv_parser.js:25:6)
$(function () {
Login = {};
Login.Views = {};
Login.Model = Backbone.Model.extend({
//curl -v -H "Accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" https://sandbox.catalogchoice.org/oauth2/access_token -d "grant_type=password&[email protected]&password=apassword&client_id=8rmz3ts4r7dvr877i2zvrsw66&scope=read write"
url: "https://sandbox.catalogchoice.org/oauth2/access_token",
lucas@(none):~/proyects/ccMainline$ rake sunspot:solr:regenerate --trace
DEPRECATION WARNING: Rake tasks in vendor/plugins/acts_as_sanitized/tasks, vendor/plugins/annotate_models/tasks, vendor/plugins/bj/tasks, vendor/plugins/busyajax/tasks, vendor/plugins/cache_fu/tasks, vendor/plugins/event_attribute/tasks, vendor/plugins/fitter_happier/tasks, vendor/plugins/jslint_on_rails/tasks, vendor/plugins/migration_test_helper/tasks, vendor/plugins/navigation_helper/tasks, vendor/plugins/redbox/tasks, and vendor/plugins/validates_url_format_of/tasks are deprecated. Use lib/tasks instead. (called from /home/lucas/.rvm/gems/ruby-1.8.7-p370@ccmainline/gems/rails-2.3.14/lib/tasks/rails.rb:10)
WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead.
at /home/lucas/proyects/ccMainline/lib/tasks/sunspot.rake:4
WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead.
at /home/lucas/proyects/ccMainline/lib/tasks/sunspot.r
var smb = {
parse: function (response) {
if (response.error_text) {
var ErrorMessage = smb.module('error_message');
var error_message = new ErrorMessage.Views.Flash({
message: response.error_text
});
}
if (typeof this.extra_parse === "function") {
return this.extra_parse(response);
$(function () {
var account = new Account.Model(),
choices = new CatalogChoice.List(),
login = new Login.Views.Form(),
header = new Account.Views.Header({model: account}),
results = new Company.Views.Results(),
summary = new CatalogChoice.Views.Summary({collection: choices}),
welcome = new Pages.Welcome({model: account}),
dashboard = new Pages.Dashboard({model: account}),
signup = new Pages.Signup({model: account}),
if (store.get('access_token')) {
params.beforeSend = function(xhr) {
xhr.setRequestHeader('Authorization', 'OAuth ' + store.get('access_token'));
};
} else {
params.beforeSend = function(xhr) {
xhr.setRequestHeader('Authorization', 'ClientID ' + store.get('ClientID'));
};
}
(addon-sdk-1.7)lucas@(none):~/proyects/addon-sdk-1.7$ cat bin/activate
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly
deactivate () {
if [ -n "$_OLD_VIRTUAL_PATH" ] ; then
Vamos a trabajar para que finalice el traspaso de la Policía Federal a laCiudad, con sus recursos, como dice el artículo 75 de la ConstituciónNacional, para que el Jefe de Gobierno pueda dar mayor seguridad.Vamos a trabajar para que la Ciudad recupere el control del transportepúblico y lo pueda planificar con inteligencia, tanto en el transporte interno,de subterráneos y colectivos, como en el externo, de redes ferroviarias ycolectivos metropolitanos, que proponemos sea administrado, regulado ycontrolado por medio de políticas diseñadas en forma conjunta yconsensuada entre la ciudad, la provincia de Buenos Aires y la Nación, a finde lograr la optimización de recursos y evitar el dispendio económico y ladesorganización que genera la superposición de potestades entre estas jurisdicciones.
Catalog.Model = Backbone.Model.extend({
url: function () {
return '/v1/catalogs/' + this.get('catalog_id');
},
parse: function (response) {return response.catalog},
isPhoneBook: function () {
return _.any(this.get('tags'), function (tag) {
return tag.name === "Phone Book";