Skip to content

Instantly share code, notes, and snippets.

View felds's full-sized avatar
:shipit:

Luiz “Felds” Liscia felds

:shipit:
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Lightslider</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/lightslider/1.1.5/css/lightslider.min.css" rel="stylesheet" />
<style>
.container {
margin: 2rem auto;
<?php
session_start();
if ($_COOKIE['current_cookie'] != $_SESSION['prev']) {
die("DENIED");
}
@felds
felds / utils.php
Created September 7, 2016 20:58
Wordpress Utils
<?php
/**
* Return `true` if any of the items evals to `true`, `false` otherwise
*
* @param Array $list The list to be evaluated
* @return bool
*/
function all($list)
{
@felds
felds / index.html
Last active September 27, 2016 16:12
JQuery Scrubber
<div class="slideshow" id="slideshow">
<div class="slideshow__bgs">
<div style="background-image: url(https://unsplash.it/800/600?image=4)"></div>
<div style="background-image: url(https://unsplash.it/800/600?image=3)"></div>
<div style="background-image: url(https://unsplash.it/800/600?image=2)"></div>
<div style="background-image: url(https://unsplash.it/800/600?image=1)"></div>
</div>
<div class="slideshow__fg">
<div class="scrubber" data-scrubber-steps="4" id="scr-slideshow"></div>
</div>
@felds
felds / index.html
Created October 22, 2016 05:26
Snaike Gaime
<canvas id=the-game width=420 height=240 tabindex=1 autofocus></canvas>
// hic sum configs
@felds
felds / create-mysql-db
Last active April 26, 2017 20:44
Create mysql db and user
#!/usr/bin/env python3
import MySQLdb
from getpass import getpass
def get_connection():
while True:
passwd = getpass("Enter root password:")
try:
@felds
felds / index.md
Last active May 4, 2017 18:32
Map of the FOSUB paths

FOSUB paths

/login                  # GET       - show the login form
/login_check            # POST      - check the login information
/logout                 # GET       - logs the user out
/profile
    /                   # GET       - show my profile
    /edit               # GET, POST - edit my profile
 /change-password # GET, POST - show and process the form
const features = [
{
title: "Faróis Xênon com luzes diurnas em LED",
waypoints: [
[ 3.33169, 0.76900, 0.44200, true ],
[ 3.63169, 0.78800, 0.46200, true ],
[ 3.93169, 0.78000, 0.50400, true ],
[ 4.23169, 0.75800, 0.56400, true ],
[ 4.53169, 0.70900, 0.64400, true ],
[ 4.83169, 0.64500, 0.69900, true ],