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
Laravel: | |
1. What I liked: | |
1. Super-easy initial setup | |
2. Working with Eloquent is pretty damn easy | |
3. Repository pattern implemented quite easily | |
4. Seems to be working pretty fast (in comparison to Symfony) | |
5. Feels pretty friendly and easy going. BUT: | |
2. What I dislike: | |
1. From the moment #1, I feel like Eloquent is forcing me to think about DB and relations. I don’t want that. I want to think about OBJECTS first, and think about persistence separately |
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
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\033[0;36m\]\w\[\e[0m\]$(__git_ps1 " (%s)")\$ ' |
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
<?php | |
// Run the script below and try doing anything in your MongoDB | |
$client = new \MongoDB\Client('mongodb://localhost'); | |
$cmd = new \MongoDB\Driver\Command(['eval' => 'sleep(20000)']); | |
$client->getManager()->executeCommand('foobar', $cmd); |
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
console.log('script start') | |
const interval = setInterval(() => { | |
console.log('setInterval') | |
}, 0) | |
setTimeout(() => { | |
console.log('setTimeout 1') | |
Promise.resolve().then(() => { | |
console.log('promise 3') |
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
var userChoice = ["paper", "rock", "scissors"]; | |
var computerChoice = Math.random(); | |
if (computerChoice < 0.34) { | |
computerChoice = userChoice[1]; | |
} else if(computerChoice <= 0.67) { | |
computerChoice = userChoice[0]; | |
} else { | |
computerChoice = userChoice[2]; | |
} console.log("Computer: " + computerChoice); |
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
<html> | |
<head> | |
<script src="ime-fajla.js"></script> | |
</head> | |
<body> | |
<button onclick="play(1);">Papir</button> | |
<button onclick="play(2);">Kamen</button> | |
<button onclick="play(3);">Makaze</button> | |
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
HTML kod pasteujes ovde | |
bla bla bla | |
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
asdasdsa |
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/sh | |
# size of swapfile in megabytes | |
swapsize=8000 | |
# does the swap file already exist? | |
grep -q "swapfile" /etc/fstab | |
# if not then create it | |
if [ $? -ne 0 ]; then |
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
[mongodb] | |
name=MongoDB Repository | |
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ | |
gpgcheck=0 | |
enabled=1 |
NewerOlder