Skip to content

Instantly share code, notes, and snippets.

View NandoKstroNet's full-sized avatar
🎯
Focusing

Nando Kstro Net NandoKstroNet

🎯
Focusing
View GitHub Profile
@felipefialho
felipefialho / lista-de-estudo.md
Last active October 24, 2024 17:13
Lista com sugestões de estudo para Desenvolvedores Front-End.

Lista de estudo para Desenvolvedores Front-End

Quer estudar sobre algo além do trio mágico HTML, CSS e Javascript e não sabe por onde começar?

Segue uma lista com sugestões de estudo extra para Desenvolvedores Front-End.

CSS

  • PostCSS
@galvao
galvao / rmd.sh
Created April 21, 2014 17:05
Recording a Screencast (with sound and a delay of 10 seconds before recording starts)
#Usage: rmd.sh CourseName Lesson
cd /home/zaphod/Documents/Cursos/CodeSquad/$1/$2
recordmydesktop --delay 10 -o $2.ogv
@Kartones
Kartones / postgres-cheatsheet.md
Last active May 5, 2025 08:32
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@airportyh
airportyh / jsconf_slides_codes_and_notes.md
Last active June 19, 2017 20:51
JSConf 2014 Slides, Codes and Notes.

JSConf Slides, Codes and Notes

These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.

Modular frontend with NPM - Jake Verbaten (@Raynos)

@fmasanori
fmasanori / jogos.py
Last active October 30, 2022 00:00
World Cup in six lines of Python 3. Jogos da Copa do Mundo em cinco linhas de Python 3.
import requests
jogos = requests.get('http://worldcup.sfg.io/matches').json()
for jogo in jogos:
if jogo['status'] in ('completed', 'in progress'):
print (jogo['home_team']['country'], jogo['home_team']['goals'], 'x',
jogo['away_team']['country'], jogo['away_team']['goals'])
import urllib.request
import json
resp = urllib.request.urlopen('http://worldcup.sfg.io/matches').read()
for jogo in json.loads(resp.decode('utf-8')):
if jogo['status'] == 'completed':
print (jogo['home_team']['country'], jogo['home_team']['goals'], 'x', jogo['away_team']['country'], jogo['away_team']['goals'])
@eminetto
eminetto / gist:6fb178a31f8bfdbe152d
Last active December 5, 2019 16:27
Vaga PHP Coderockr
Requisitos
- Conhecimentos avançados em PHP e Orientação a Objetos
- Conhecimentos avançados em algum framework como Zend Framework 2, Silex ou Symfony
- Conhecimentos intermediários em Doctrine 2 (entidades, relacionamentos, dql)
- Conhecimentos avançados em testes unitários
- Interesse e facilidade em aprender novas tecnologias, linguagens de programação e ambientes de desenvolvimento
- Conhecimentos intermediários em banco de dados como MySQL e PostgreSQL
- Conhecimentos intermediários em Git
- Conhecimento básico de segurança e criptografia de dados:
- SSL;
@jstoone
jstoone / UniqueSlug.php
Created November 25, 2014 19:04
Laravel: Generate unique slug
/*
* Does not need to be wrapped in a class, I often have this in my model,
* but abstract when used more than once.
* @soruce: http://chrishayes.ca/blog/code/laravel-4-generating-unique-slugs-elegantly
*/
class UniqueSlug {
public static function generateUniqueSlug($value) {
$slug = Str::slug($value);
$slugs = static::whereRaw("slug REGEXP '^{$slug}(-[0-9]*)?$'");
@henriquemoody
henriquemoody / br-cities.php
Last active June 1, 2020 12:50
Lista de cidades brasileiras com base nos dados o IBGE
<?php
return [
// http://www.cidades.ibge.gov.br/download/mapa_e_municipios.php?uf=ac (Thu May 14 16:30:15 BRT 2015)
'AC' => [
1200013 => 'Acrelândia',
1200054 => 'Assis Brasil',
1200104 => 'Brasiléia',
1200138 => 'Bujari',
1200179 => 'Capixaba',
@alexserver
alexserver / rest-basics.md
Created October 28, 2015 18:56
REST basics, Theory, Principles, and examples.

RESTful API know-how

Motivation

I place my learning process in this document with 2 motives:

  1. To have a quick guide whenever I lost the track of knowledge.
  2. To share the knowledge with anyone wants to learn RESTful APIs

1. Before, some theory