Skip to content

Instantly share code, notes, and snippets.

View felipefernandes's full-sized avatar
:octocat:

Felipe Fernandes felipefernandes

:octocat:
View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKKCw9xuzd50jiAjCHi/HKBX98ylfmxybeg6ZqBDAsNepb3LuypzRctpVVpUMpSGxDcziO6vibbzlmH6lJxdTqm16snT7U/VTGlAL/643OvVYmxS3PZuHgNBkrex+gQ+DxC5fFsrPLQaUvJyQCDIdpETjWbanogkUCjVr82UzdKGo6vbNoHclNbrOpcRQ7hlDa1XGq399lWo/PcaKMFmGTnK+a7Sa+2+3bTM4dXkf/d2TwBBc5JtF31DCGzedHeVvzM4fpICi9j9vkePXDW5Q4ybPmA/EtMkajOf79pdfUs7IHS5RDZvmIDTD6GZ9t51K3+f5GmP7Fx+zwIOSNDplf felipebitbucket
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDGyPzA5t3EVaJxGmSqB8DlD956ynimNtM+vKiTDwSvmgkcACeCFCNVyryvZroxVjwYaKxvNeylAPpz5oZPtp251nJuVYQIfiKcK7IVvcyt3KgMjUQl5R5fjGXcKKiCjcd8+2n1QDzE4wb/8RWDDcbrr6+dlGqaW6UoMM2SUDAH6xtao392n13CNrpqZLVe9PogpxeL4LtjfwDO6XUGwcQ2k7RIjCGoa84X1Fs04Yl6c8JtRnMLzLijjFdW51HMxeRReyu2GqeepDJlVH9HxuuWt2re8xeEuBXA64qMn/SbYecv1s1hcjm0hRuENUvgPb3mMxmwidue+/vDzc/SzsHSIhJ2kpyKIcoTl7TVJkXH6gMzvxO0hDwpYAFDVE6CjDArz4t1ZcYsWaV9roTnzHOlAgzSwg25LHGIdTqXrR6d94zjdp4bih2/YvPPMCyClztLkGAqV9PA6h7sPUVhoU2yQhiJYUW+wvaPxO+WuQFp9DQmNnc1XQKLIbuf0SxEbL5fgvkLU10YQVVVfvWLoUXH2bmcxbUja+lAWsDZtNlvfgt4ifkRm02sqd9+or0hPD8WYEUTaQkVNF
@felipefernandes
felipefernandes / instalaScratch2.sh
Last active August 29, 2015 14:20
Automatizador de instalação Scratch 2.0 no UbuntUCA 3 (BASH) v1.0
#!/bin/bash
# Este script está sob BSD License - http://opensource.org/licenses/bsd-license.php
# Pode ser distribuido e modificado, sempre citando o autor
#
# Autor: Felipe Fernandes
# E-mail: felipefernandesweb@gmail.com
#
# ---------------
# Automatizador de instalação do Scratch 2.0 no UbuntUCA
@felipefernandes
felipefernandes / integracao.js
Last active August 29, 2015 14:00
(json, ajax) leitor de posts de outro blog
$.getJSON('http://revista.caseme.local/api-ultimas-json.php?callback=')
.success(function(response) {
$.each(response.posts, function() {
var $img;
console.log(this.title);
});
});
@felipefernandes
felipefernandes / add_parent_cat_in_body_class.php
Last active August 29, 2015 13:58
Wordpress: Adding parent class in Body Class section
<?php
/**
* Adds parent category class in BodyClass()
* @author felipefernandes (eu@felipfernandes.nu)
*/
function add_parent_cat_in_body_class( $classes ){
$category = get_queried_object();
$parent_id = $category->category_parent;
$parent = get_category( $parent_id );
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.logo {
width:300px;
height:100px;
background:red;
transition: width 2s;
-webkit-transition: width 2s; /* Safari */
$(document).ready(function() {
var larguraJanela = $(window).width();
// tamanho chave pra mexer no tamanh
if (larguraJanela < 800) {
mudaTamanhoLogo(true);
} else {
mudaTamanhoLogo(false);
}
@felipefernandes
felipefernandes / windows-batch-backup
Created October 2, 2013 18:30
Batch file de backup para windows
ECHO off
set source="C:\Users\Public\Dropbox\Alunos 2013.2"
set destination="C:\Users\Public\webdesign_backup"
for /F "tokens=1-4 delims=/ " %%A in ('date/t') do (
set DateDay=%%A
set DateMonth=%%B
set DateYear=%%C
)