Skip to content

Instantly share code, notes, and snippets.

View monteirobrena's full-sized avatar

Brena Monteiro monteirobrena

View GitHub Profile
@monteirobrena
monteirobrena / index.html
Created December 19, 2017 16:03 — forked from alrocar/index.html
WIX iframe
<html>
<head>
</head>
<style type="text/css">
.topad {
height: 26px;
position: absolute;
z-index: 999999999;
top: 0;
@subfuzion
subfuzion / curl.md
Last active November 11, 2024 03:27
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@felquis
felquis / dúvida.txt
Created December 21, 2015 11:12
Dúvida sobre Fuso Horário configurado errado no device do cliente
Oi galera, estava com um problema com Fuso Horário,
o celular da minha mãe estava com data e fuso
automático desabilitado, e o fuso Horário configurado
para Fiji
Device Moto E XT1025, browser Chrome (45.0.2454.84)
Quando ia calcular a hora acontecia o seguinte:
new Date('2015-12-21T09:41:44.210Z')

List with Thumbnails and Summary Text

A list of items that contain a thumbnail image and a large block of text. Small screens hide the summary content but gets exposed once screen space becomes available.

Considerations Normally it's not a good idea to hide content for small screens, so make sure the content being hidden (article excerpt, further product info, etc) is supplementary and not essential for the user to make an informed decision. Make sure that hidden content is still accessible somewhere (it would most likely live on the linked page). Read: The media object saves hundreds of lines of code

A Pen by Brad Frost on CodePen.

@alrocar
alrocar / index.html
Last active September 27, 2018 18:50
WIX iframe
<html>
<head>
</head>
<style type="text/css">
.topad {
height: 26px;
position: absolute;
z-index: 999999999;
top: 0;
@peczenyj
peczenyj / input.txt
Last active August 29, 2015 14:09
remover bloco para fim de arquivo.
lala
begin
sddasdas
asdasdasd
asdasd
end
lolo
@jtadeulopes
jtadeulopes / download_map.rb
Created July 24, 2014 18:09
Download staticmap
require 'open-uri'
url = 'http://maps.googleapis.com/maps/api/staticmap?center=40.714728,-73.998672&markers=color:0x4E3253%7C40.714728,-73.998672&zoom=15&size=640x640&scale=2&format=png&maptype=roadmap&sensor=false'
target = File.join(File.expand_path('../', __FILE__), '/maps.jpg')
File.open(target, "wb") do |saved_file|
open(url, 'rb') do |read_file|
saved_file.write(read_file.read)
end
end
@jtadeulopes
jtadeulopes / server.md
Last active March 29, 2024 10:23
Server setup with ubuntu, nginx and puma for rails app.

Update and upgrade the system

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot

Configure timezone

@stevenyap
stevenyap / Rails Controller.md
Created October 19, 2013 13:58
Rails controller cheatsheet

Flash

# supports only notice and alert by default
# the rest has to go into flash hash
redirect_to :index, notice: "success"
redirect_to :new, notice: "errors"
redirect_to :new, flash: { success: "yeah" }
flash[:info] = "updated"
@rcaetano
rcaetano / gist:5999184
Last active January 16, 2024 18:46 — forked from cluePrints/gist:2521535
Configure Amazon Linux EC2

Steps

  • Build tools:

      sudo yum groupinstall "Development Tools"
      sudo yum install openssl openssl-devel
      sudo yum install git-core
    
  • Dependencies: