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 / 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;
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 / 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
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
@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') {
@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";
?>
Install Cmder: http://cmder.net/
Install Choco: https://chocolatey.org/install
And now commands like "choco install [wget, python, node, docker, ...]" is working without problems.
Thank you and have fun!
#!/bin/bash
#Script for install Mediawiki on centos 6.8
#Manual: https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Red_Hat_Linux
#
#Run with sudo or root
#Update
yum -y update
yum -y install epel-release
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
npm install && npm run build
npm WARN eslint-config-airbnb@15.1.0 requires a peer of eslint-plugin-jsx-a11y@^5.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-bootstrap-date-picker@5.1.0 requires a peer of react-bootstrap@^0.31.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package babel-preset-es2015 is included as both a dev and production dependency.
npm WARN The package stylus is included as both a dev and production dependency.
audited 39862 packages in 22.437s
found 959 vulnerabilities (793 low, 128 moderate, 36 high, 2 critical)
run `npm audit fix` to fix them, or `npm audit` for details

Keybase proof

I hereby claim:

  • I am jwillker on github.
  • I am jhonn (https://keybase.io/jhonn) on keybase.
  • I have a public key ASAuq7OyLYVPhg3Bv6O5mm71ipZsehGFNcwqD0XNRJ0ioQo

To claim this, I am signing this object: