#General Find the most frequent integer in an array Find pairs in an integer array whose sum is equal to 10 (bonus: do it in linear time) Given 2 integer arrays, determine of the 2nd array is a rotated version of the 1st array. Ex. Original Array A={1,2,3,5,6,7,8} Rotated Array B={5,6,7,8,1,2,3} Write fibbonaci iteratively and recursively (bonus: use dynamic programming) Find the only element in an array that only occurs once. Find the common elements of 2 int arrays Implement binary search of a sorted array of integers Implement binary search in a rotated array (ex. {5,6,7,8,1,2,3}) Use dynamic programming to find the first X prime numbers
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 | |
mkdir -p /vagrant/dcm | |
cd /vagrant/dcm/ | |
wget -O dcm4chee-2.17.3.zip 'http://downloads.sourceforge.net/project/dcm4che/dcm4chee/2.17.3/dcm4chee-2.17.3-mysql.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fdcm4che%2Ffiles%2Fdcm4 chee%2F2.17.3%2F&ts=1378999040&use_mirror=ufpr' & | |
wget -O dcm4che-2.0.23.zip 'http://downloads.sourceforge.net/project/dcm4che/dcm4che2/2.0.23/dcm4che-2.0.23-bin.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fdcm4che%2Ffiles%2Fdcm4che2 %2F2.0.23%2F&ts=1378999971&use_mirror=ufpr' & | |
wget -O jboss-4.2.3.zip 'http://downloads.sourceforge.net/project/jboss/JBoss/JBoss-4.2.3.GA/jboss-4.2.3.GA-jdk6.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fjboss%2Ffiles%2FJBoss%2FJ Boss-4.2.3.GA%2F&ts=1378999423&use_mirror=ufpr' & | |
# wget -O dcmtk-3.6.0.zip 'ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk360/dcmtk-3.6.0.zip' & | |
wget -O oviyam-1.war 'https://dl.dropboxusercontent.com/u/28191834/proradis-config/programas/oviyam-1.war' & | |
wget -O oviyam2.war 'https://dl.dropboxu |
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
Host dvi-cajamar | |
HostName smartris-dvi-cajamar.ddns.net | |
Port 4242 | |
User proradis | |
Host croma-santos | |
HostName smartris-croma-santos.ddns.net | |
Port 4242 | |
User proradis |
- Fork
- Clone your fork
- Add upstream : git remote add upstream <github_repo>
- git checkout master
- git pull upstream master && git push origin master
- git checkout -b feature-branch
- git push -u feature-branch
- Create de PR
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
```php | |
{!! Form::select('state_id', [ | |
'-1' => 'SELECIONE O ESTADO', | |
'1' => 'ACRE', | |
'2' => 'ALAGOAS', | |
'3' => 'AMAPA', | |
'4' => 'AMAZONAS', | |
'5' => 'BAHIA', | |
'6' => 'CEARA', |
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
$insurances = array_map(function ($key, $value) { | |
$CI =& get_instance(); | |
return array( | |
'id' => $CI->encrypt->encode($key), | |
'text' => $value['text'] | |
); | |
}, array_keys($result->result_array()), $result->result_array()); |
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
alert("ssss"); |
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
License Key PhpStorm 8 | |
User Name : EMBRACE | |
===== LICENSE BEGIN ===== | |
43136-12042010 | |
00002UsvSON704l"dILe1PVx3y4"B3 | |
49AU6oSDJrsjE8nMOQh"8HTDJHIUUh | |
gd1BebYc5U"6OxDbVsALB4Eb10PW8" | |
===== LICENSE END ===== |
composer global require "laravel/installer=~1.1"
In /.bashrc add
export PATH="$PATH:/.composer/vendor/bin"
source .bashrc
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
// Validador CNPJ | |
jQuery.validator.addMethod("cnpj", function(cnpj, element) { | |
var numeros, digitos, soma, resultado, pos, tamanho, | |
digitos_iguais = true; | |
cnpj = cnpj.replace(/[. /-]/g, ''); | |
if (cnpj.length < 14 && cnpj.length > 15) | |
return false; |