This file contains hidden or 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
-define(pi, 3.14159265358979323). | |
-define(solar_mass, (4 * ?pi * ?pi)). | |
-define(days_per_year, 365.24). | |
bodies() -> | |
[ | |
{ % sun | |
0.0, | |
0.0, |
This file contains hidden or 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
-module(sendrecv). | |
-export([run/1, ring_node/1]). | |
-include("conf.hrl"). | |
-import(persist, [createOrOpen_file/1]). | |
-import(medicoes, [printResult/6, generate_data/1, time_microseg/0]). | |
run([DataSizeStr, RepStr, QtdProcsStr]) -> | |
DataSize = list_to_integer(DataSizeStr), | |
Rep = list_to_integer(RepStr), |
This file contains hidden or 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
#Alias /robots.txt /var/www/html/portal/portal/static/robots.txt | |
#Alias /favicon.ico /var/www/html/portal/portal/static/favicon.ico | |
#AliasMatch ^/([^/]*\.css) /var/www/html/portal/portal/static/ | |
#Alias /static/ /var/www/html/portal/portal/static/ | |
#Alias /media/ /var/www/html/portal/portal/media/ |
This file contains hidden or 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
Alias /robots.txt /var/www/html/portal/portal/static/robots.txt | |
Alias /favicon.ico /var/www/html/portal/portal/static/favicon.ico | |
AliasMatch ^/([^/]*\.css) /var/www/html/portal/portal/static/ | |
Alias /static/ /var/www/html/portal/portal/static/ | |
Alias /media/ /var/www/html/portal/portal/media/ | |
WSGIScriptAlias / /var/www/html/portal/portal/wsgi.py | |
WSGIPythonPath /var/www/html/portal:/usr/lib/python2.6/site-packages |
This file contains hidden or 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
Before: | |
positions = [] | |
if ship_name == :battleship | |
positions = [ [ x_position, y_position ], [ x_position + 1 * horizontal, y_position + 1 * vertical ], | |
[ x_position + 2 * horizontal, y_position + 2 * vertical ], [ x_position + 3 * horizontal, y_position + 3 * vertical ] ] | |
elsif ship_name == :carrier | |
This file contains hidden or 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
Before: | |
messages = case message | |
when Array then message | |
when nil then [] | |
else [message] | |
end | |
After: | |
messages = Array(message) |
This file contains hidden or 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
git reflog | |
git revert 58886e2 |
This file contains hidden or 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
git reflog | |
git chackout solve_world_hunger |
This file contains hidden or 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
git add -p | |
e | |
# o comando split deveria funcionar mas não funcionou como o esperado |
This file contains hidden or 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
git checkout new-feature |