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
server { | |
listen 80; | |
root /var/www/html; | |
index index.php; | |
server_name example.com; | |
location / { | |
try_files $uri $uri/ =404; | |
} |
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 | |
$photoid = <photoid>; | |
$alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'; | |
// function to encode from photoid to shortcode | |
function base_encode($photoid, $alphabet) | |
{ | |
$base_count = strlen($alphabet); | |
$encoded = ''; |
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
if dev.is_bored? || job.sucks? | |
Job::search(:flexible_hours true, :company_culture 100) | |
end |
NewerOlder