Skip to content

Instantly share code, notes, and snippets.

View jwillker's full-sized avatar
:octocat:
...

Jhonn W. Frazão jwillker

:octocat:
...
View GitHub Profile
@jwillker
jwillker / config.php
Created September 8, 2015 00:08
config.php
<?php
$current_page_uri = $_SERVER['REQUEST_URI'];
$part_url = explode("/", $current_page_uri);
$page_name = end($part_url);
$email_id = "jhonn1995@gmail.com";
?>
@jwillker
jwillker / index.php
Created September 8, 2015 00:07
index.php
<?php
include "app/config.php";
//include "app/detect.php";//for more platforms
$browser_t = "web";
if ($page_name=='') {
include $browser_t.'/index.html';
}
elseif ($page_name=='index.html') {
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
@jwillker
jwillker / tetris.py
Last active August 29, 2015 14:27 — forked from silvasur/tetris.py
Tetris implementation in Python
#!/usr/bin/env python2
#-*- coding: utf-8 -*-
# NOTE FOR WINDOWS USERS:
# You can download a "exefied" version of this game at:
# http://kch42.de/progs/tetris_py_exefied.zip
# If a DLL is missing or something like this, write an E-Mail (kevin@kch42.de)
# or leave a comment on this gist.
# Very simple tetris implementation
import argparse
import urllib.request
import os
import img2pdf
from os import walk
from os.path import join
from bs4 import BeautifulSoup
work_dir = os.path.dirname(__file__)
@jwillker
jwillker / Cupom Fiscal
Created June 12, 2014 18:21
Programa feito em C, serve para calcular uma venda e imprimir um cupom fiscal igual a um de supermercado.(pt-BR).
#include<conio.h>
#include<stdio.h>
#include<conio.c>
#include<string.h>
#include<windows.h>
#include<stdlib.h>
int main(){
int senha,E,CP=1,QP=0,QP1=0,QP2=0,QP3=0,QP4=0,QP5=0,IC=0,CL=1,CC=0,L=2, cont=1, COL;