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
-- Cria a tabela funcionario, com a primary key 'id' | |
CREATE TABLE `funcionario` | |
( | |
`id` INT NOT NULL AUTO_INCREMENT, | |
`name` VARCHAR(255) NOT NULL DEFAULT '', | |
PRIMARY KEY (`id`) | |
); | |
-- Insere registros | |
INSERT INTO `funcionario` |
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
#!/bin/bash | |
# Install required development packages | |
sudo apt-get install build-essential | |
sudo apt-get install cmake | |
sudo apt-get install git-core | |
sudo apt-get install libboost1.58-all-dev | |
sudo apt-get install liblua5.1-0-dev | |
sudo apt-get install libglew1.13 | |
sudo apt-get install libvorbis-dev |
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
diff --git a/modules/client_options/game.otui b/modules/client_options/game.otui | |
index 63d73613..08ef73da 100644 | |
--- a/modules/client_options/game.otui | |
+++ b/modules/client_options/game.otui | |
@@ -27,6 +27,10 @@ Panel | |
!text: tr('Show left panel') | |
OptionCheckBox | |
+ id: showExtraLeftPanel | |
+ !text: tr('Show an extra left panel') |
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
bool Player::addUnjustifiedKill(const Player* attacked, bool countNow) | |
{ | |
if(!g_config.getBool(ConfigManager::USE_FRAG_HANDLER) || hasFlag( | |
PlayerFlag_NotGainInFight) || g_game.getWorldType() != WORLDTYPE_OPEN | |
|| hasCustomFlag(PlayerCustomFlag_NotGainUnjustified) || hasCustomFlag( | |
PlayerCustomFlag_NotGainSkull) || attacked == this) | |
return false; | |
if(countNow) | |
{ |
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
<%-- | |
Document : register | |
Created on : 13/11/2016, 22:42:05 | |
Author : dalvo | |
--%> | |
<% | |
boolean logged = session.getAttribute("logged") != null && true || false; | |
if (logged) { | |
response.sendRedirect("/WebForum/chat.jsp"); |
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
#include <stdio.h> | |
int main(){ | |
int num, i, tamvet1, tamvet2, i_menor, i_maior; | |
printf("Informe o tamanho do vetor \'numerosMenores\': "); | |
scanf("%d", &tamvet1); | |
printf("Informe o tamanho do vetor \'numerosMaiores\': "); | |
scanf("%d", &tamvet2); | |
int numerosMenores[tamvet1], numerosMaiores[tamvet2]; | |
for(i=0, i_menor = 0, i_maior = 0; i < (tamvet1+tamvet2); i++){ | |
printf("Digite um numero:"); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
void quickSort(int[], int, int); | |
int binarySearch(int[], int, int); | |
int binarySearchRecursive(int[], int, int, int); | |
int main() { | |
char opt; | |
int * vet, size, i, target, ret; |
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
local str = [[ | |
if($obj->{} != '') { | |
$where .= 'AND {} = :{}'; | |
$bind_str .= '$stm->bindValue(":{}", $obj->{}, PDO::PARAM_STR);'; | |
} | |
]] | |
local m = 'CPF, NOME, STATUS, WEBADM, WEBCORRESP, ACR, GCIR, SU, WEBNIVEL, WEBFUNC, ASS, CCR, DIR, ASD, ADN' | |
for field in m:gmatch('(%w+), ') do |
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
function unicode2latin1(str) | |
local map = { | |
-- ÁáÀàÂâÃã | |
{utf = {0xc3, 0x81}, latin = 0xc1}, -- Á | |
{utf = {0xc3, 0xa1}, latin = 0xe1}, -- á | |
{utf = {0xc3, 0x80}, latin = 0xc0}, -- À | |
{utf = {0xc3, 0xa0}, latin = 0xe0}, -- à | |
{utf = {0xc3, 0x82}, latin = 0xc2}, -- Â | |
{utf = {0xc3, 0xa2}, latin = 0xe2}, -- â |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
#define PRINT_SLEEP_TICKS 1000 | |
#define BUBBLE_SORT 1 | |
#define INSERTION_SORT 2 | |
#define SHELL_SORT 3 | |
#define SELECTION_SORT 4 |
NewerOlder