Skip to content

Instantly share code, notes, and snippets.

View monteirobrena's full-sized avatar

Brena Monteiro monteirobrena

View GitHub Profile
@monteirobrena
monteirobrena / gist:dc50418c0717903e575cd8d4c900b34c
Created December 18, 2019 16:56 — forked from markmarkoh/gist:2969317
World Map Geo JSON data
var countries_data = {"type":"FeatureCollection","features":[
{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[74.92,37.24],[74.57,37.03],[72.56,36.82],[71.24,36.13],[71.65,35.42],[71.08,34.06],[69.91,34.04],[70.33,33.33],[69.51,33.03],[69.33,31.94],[66.72,31.21],[66.26,29.85],[62.48,29.41],[60.87,29.86],[61.85,31.02],[60.84,31.5],[60.58,33.07],[60.94,33.52],[60.51,34.14],[61.28,35.61],[62.72,35.25],[63.12,35.86],[64.5,36.28],[64.8,37.12],[66.54,37.37],[67.78,37.19],[69.32,37.12],[70.97,38.47],[71.59,37.9],[71.68,36.68],[73.31,37.46],[74.92,37.24]]]]},"properties":{"name":"Afghanistan"},"id":"AF"},
{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[19.44,41.02],[19.37,41.85],[19.65,42.62],[20.07,42.56],[20.59,41.88],[20.82,40.91],[20.98,40.86],[20.01,39.69],[19.29,40.42],[19.44,41.02]]]]},"properties":{"name":"Albania"},"id":"AL"},
{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[2.96,36.8],[8.62,36.94],[8.18,36.52],[8.25,34.64],[7.49,33.89],[9.06,3
@monteirobrena
monteirobrena / gist:d56c1c03b172c84ce6547646cabf779b
Created September 13, 2018 13:46 — forked from rcaetano/gist:5999184
Configure Amazon Linux EC2

Steps

  • Build tools:

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

@monteirobrena
monteirobrena / data_types_operators.py
Last active May 2, 2018 01:51
Introduction to Python Programming
my_var = 500
# Decrease 10%
my_var *= .9
# Increase 5%
my_var *= 1.05
# Return only integer of division
my_var // 3 # 166
@monteirobrena
monteirobrena / algorithms.md
Last active May 5, 2018 13:56
Machine Learning

Linear Regression

Naive Bayes

Decisions Trees

Logistic Regression

Support Vector Machines

@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;
@monteirobrena
monteirobrena / template-vmss-autoscale-lb-vhd-https.json
Created November 30, 2016 18:26
Template JSON Azure VMSS Auto Scale Load Balancer VHD HTTPS
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"vmSku": {
"type": "string",
"defaultValue": "Standard_F1s",
"metadata": {
"description": "Size of VMs in the VM Scale Set."
}
@monteirobrena
monteirobrena / install-comodo-ssl-cert-for-nginx.rst
Created September 7, 2016 19:21 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@monteirobrena
monteirobrena / azure.rake
Created April 9, 2016 19:57
Rails assets on MS Azure CDN
require 'azure_blob_service'
namespace :azure do
desc 'Uploads application assets to Azure'
task upload_assets: :environment do
service = AzureBlobService.new(
Rails.application.secrets.azure['account_name'],
Rails.application.secrets.azure['access_key'])
service.ensure_container_exists('assets')

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.

lala
begin
sddasdas
asdasdasd
asdasd
end
lolo