Skip to content

Instantly share code, notes, and snippets.

View Nifled's full-sized avatar
👀

Erick Delfin Nifled

👀
View GitHub Profile
@Nifled
Nifled / Circle.java
Created June 16, 2017 21:32
Shape interface + implementations
public class Circle implements Shape {
private int radius;
public Circle(int r) {
this.radius = r;
}
@Override
public void perimeter() {
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME=gnzh
alias ±=~
alias python=python3
alias pip=pip3
# ZSH Theme - Preview: http://dl.dropbox.com/u/4109351/pics/gnzh-zsh-theme.png
# Based on bira theme
setopt prompt_subst
() {
local PR_USER PR_USER_OP PR_PROMPT PR_HOST
# Check the UID
@Nifled
Nifled / mq.js
Created February 25, 2017 19:33
Javascript Media Queries (with listener)
/* JavaScript Media Queries */
if (matchMedia) {
var mq = window.matchMedia("(min-width: 1200px)");
mq.addListener(WidthChange);
WidthChange(mq);
}
// media query change
function WidthChange(mq) {
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema muplo_test
-- -----------------------------------------------------