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
//In config/bootstrap.php | |
/** | |
* Set the default locale. This controls how dates, number and currency is | |
* formatted and sets the default language to use for translations. | |
*/ | |
ini_set('intl.default_locale', 'pt_BR'); | |
// Part of my po file in: src/Locale/pt_BR | |
msgid "Actions" |
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/sh | |
echo "recursively removing .svn folders from" | |
pwd | |
rm -rf `find . -type d -name .svn` |
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
CPP = g++ | |
CC = gcc | |
OBJ = main.o $(RES) | |
BIN = appname | |
RM = rm -f | |
PROGRAM = appname | |
$(PROGRAM): | |
$(CPP) -w *.cpp -lX11 -lGL -lGLU -lglut -g -Wall -O2 -o $(PROGRAM) |
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
<VirtualHost *:80> | |
ServerName blog.local | |
ServerAdmin pedro.tanaka@sinetic.com.br | |
DocumentRoot /var/www/repos/blog.cake | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> | |
<Directory /var/www/repos/blog.cake> |
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 | |
command -v git >/dev/null 2>&1 || { echo >&2 "Git is not installed. Aborting."; exit 1; } | |
echo "\nWhat name should be used in commits globally? \n" | |
read full_name | |
git config --global user.name "$full_name" |
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 | |
# Install aptitude a better package manager than apt-get | |
# and install the apt-add-repository command | |
sudo apt-get install aptitude python-software-properties | |
# Add the ppa that has the oldstable version of PHP5 | |
sudo apt-add-repository ppa:ondrej/php5-oldstable -y |
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
def convert(in_file, out_file): | |
name = "" | |
for line in in_file: | |
line = line.strip() | |
print(line) | |
if line == "": | |
continue | |
if line.startswith('"'): | |
name = line.strip('"') | |
print("NAME:: " + name) |
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
"LCM" | |
0.2 67223.5 | |
0.3 57739.8 | |
0.4 26998.7 | |
0.5 17645.0 | |
0.6 12286.6 | |
0.7 9280.72 | |
0.8 7321.65 | |
0.9 5972.66 |
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
{ | |
"locations" : [ { | |
"timestampMs" : "1463503818004", | |
"latitudeE7" : -233295844, | |
"longitudeE7" : -511776429, | |
"accuracy" : 38, | |
"activitys" : [ { | |
"timestampMs" : "1463503813318", | |
"activities" : [ { | |
"type" : "still", |
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
# Created by https://www.gitignore.io/api/windows | |
### Windows ### | |
# Windows image file caches | |
Thumbs.db | |
ehthumbs.db | |
# Folder config file | |
Desktop.ini |