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
_ = require('lodash') | |
const teams = [ | |
{ | |
id: 1, | |
name: 'Ice Dukes', | |
points: 16 | |
}, | |
{ | |
id: 2, |
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
- |
vim ~/.config/terminator/config
[global_config]
title_hide_sizetext = True
title_transmit_fg_color = "#000000"
sticky = True
title_inactive_fg_color = "#ffffff"
suppress_multiple_term_dialog = True
title_receive_fg_color = "#000000"
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
class Animal | |
constructor: (name) -> | |
# @name is an instance property | |
@name = name | |
# This is an object function | |
# This function can be accessed with @getSomething() from the class itself | |
getSomething: -> return "hello" |
- SyncedSideBar - https://github.com/sobstel/SyncedSideBar
- Sidebar Enhancements
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 | |
public function upload($sourceFileName, $amazonS3IsAclPrivate = false) | |
{ | |
$metadata = array(); | |
$uploadPath = $this->calculateUploadPath($sourceFileName); | |
if ($this->sameFileWithSameHashExists($uploadPath, $sourceFileName)) { | |
$this->logger->info("File " . $uploadPath . " with same hash already exists. File will not be uploaded."); | |
return $uploadpath; |
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup
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
#localtunnel | |
server { | |
listen 80; | |
server_name 3ay5.localtunnel.com; | |
access_log /var/log/nginx/digital-version.nzz.lo.log; | |
location / { | |
root /home/ralphmeier/eos/digital-version/web; | |
index app_dev.php; |
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
<VirtualHost *:80> | |
ServerName nzz.lo | |
DocumentRoot /home/daraff/eos/www/web | |
ErrorLog ${APACHE_LOG_DIR}/www.error.log | |
CustomLog ${APACHE_LOG_DIR}/www.access.log common | |
<Location /> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ /app_dev.php [QSA,L] | |
</Location> |