Skip to content

Instantly share code, notes, and snippets.

@me
me / 0_reuse_code.js
Created April 4, 2017 10:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@me
me / _form.erb
Created March 25, 2011 14:34 — forked from anonymous/_form.erb
<%= error_messages_for 'type' %>
<div class="box">
<p>
<%= f.text_field :descrizione, :label=>l(:label_descrizione), :required => true-%>
</p>
<p>
<%= f.text_field 'figlia_di', :label=>l(:label_parent) -%>
</p>
<p>
@me
me / gist:862585
Created March 9, 2011 17:24
Glib failed build
$ brew install -v glib
==> Build Environment
CC: /usr/bin/cc => /usr/bin/gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CPPFLAGS: -I/usr/local/Cellar/gettext/0.17/include
LDFLAGS: -L/usr/local/Cellar/gettext/0.17/lib
MAKEFLAGS: -j2
@me
me / gist:862566
Created March 9, 2011 17:10
Glib failed config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by glib configure 2.24.2, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --disable-dependency-tracking --disable-rebuilds --prefix=/usr/local/Cellar/glib/2.24.2 --with-libiconv=gnu --disable-debug
## --------- ##
## Platform. ##
require 'net/http'
require 'net/https'
http = Net::HTTP.new('profil.wp.pl', 443)
http.use_ssl = true
path = '/login.html'
# GET request -> so the host can set his cookies
resp, data = http.get(path, nil)