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
{ | |
"github-oauth": { | |
"github.com": "YOUR_OAUTH_TOKEN_HERE" | |
} | |
} |
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 | |
session_start(); | |
$db= mysqli_connect('localhost', 'korisnik1', '12345', 'baza1'); | |
if(isset($_POST['send'])){ | |
$pass=addslashes($_POST['pass']); | |
$sql=" SELECT * FROM baza1 WHERE pass='$pass' "; | |
$result=mysqli_query($db,$sql); | |
if(mysqli_num_rows($result)==1){ |
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
begin | |
declare continue handler for sqlstate '42710' begin end; | |
execute immediate 'create table versions(name varchar(255)) in userspace1'; | |
execute immediate 'insert into versions values (''component-name'')'; | |
end/ |
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
[difftool] | |
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
path = | |
[merge] | |
tool = opendiff |
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
<target name="phpdoc"> | |
<exec executable="phpdoc"> | |
<arg line="--directory ${basedir} --target ${basedir}/build/api --ignore ${basedir}/library/Zend/,${basedir}/library/MAL/" /> | |
</exec> | |
</target> |
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
[vagrant@vagrant-centos65 ~]$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
Preparing... ########################################### [100%] | |
package epel-release-6-8.noarch is already installed |
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
CREATE INDEX ON :Airport(IataCode); | |
CREATE INDEX ON :Deal(OriginId); | |
CREATE INDEX ON :Deal(DestinationId); | |
MATCH (ao:Airport),(d:Deal) | |
WHERE d.OriginId = ao.IataCode | |
MERGE (ao)-[ro:ORIGIN]->(d); | |
MATCH (ad:Airport),(d:Deal) | |
WHERE d.DestinationId = ad.IataCode |
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
CREATE CONSTRAINT ON (deal:Deal) ASSERT deal.id IS UNIQUE; | |
USING PERIODIC COMMIT 5000 | |
LOAD CSV WITH HEADERS FROM "file:///Users/vranac/dev/deals/temp/deals_100k.csv" AS row | |
WITH row | |
MERGE (d:Deal {Id: row.id}) | |
ON CREATE SET d.Id = row.id, | |
d.a = row.a, | |
d.b = row.b, | |
// 2014-12-05, |
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
public function testInsertingSomething() | |
{ | |
$something = array( | |
'something_id' => 123, | |
'someother_value' => 10 | |
); | |
$dbMock = m::mock('Zend_Db_Adapter_Mysqli'); | |
$dbMock->shouldReceive('fetchOne') | |
->with('SELECT something_id FROM somethings WHERE something_id = ?', 123) |
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 | |
interface iPropulsion | |
{ | |
public function accelerate(); | |
public function decelerate(); | |
} | |
interface iOrdonance | |
{ |
NewerOlder