For some one how is going to use the virtual box of Cent OS 6.4, and want to install the guest addtions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Syntax Color | |
syntax on | |
"Line Number | |
set number | |
"Always in paste mode | |
"set paste | |
"Indentation whith Spaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# You must run with bash | |
#function nyan | |
#{ | |
e='\033' | |
RESET="$e[0m" | |
BOLD="$e[1m" | |
CYAN="$e[0;96m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
class TempFile(object): | |
"""Creates an editable temp file that will be removed on close""" | |
def __init__(self, *args, **kwds): | |
self.args = args | |
self.kwds = kwds | |
def __enter__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import timedelta | |
from datetime import date | |
one_day = timedelta(days=1) | |
today = date.today() | |
start_day = date(today.year, 3, 6) | |
end_day = date(today.year, 7, 17) | |
# Moday is 0 - Sunday is 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The ASCII arts were extracted from: | |
* - http://www.fiikus.net/?pokedex | |
* - http://www.world-of-nintendo.com/pictures/text/ | |
* And also generated with: | |
* - http://www.text-image.com | |
*/ | |
#ifndef __POKE_IMG__ | |
#define __POKE_IMG__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "matheusfaria/NaiveBlur" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_Radius ("Blur Radius", Int) = 3 | |
} | |
Category | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "matheusfaria/EdgeDetectionSobel" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_Threshold ("Threshold", Range(0, 1)) = 1 | |
} | |
Category | |
{ |
OlderNewer