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
#place in /etc/nginx/sites-available/name_of_config_file | |
server { | |
listen 80; | |
server_name staging.mna.co; | |
gzip on; | |
gzip_proxied any; | |
gzip_types application/javascript application/x-javascript text/css text/javascript; | |
gzip_comp_level 5; | |
gzip_buffers 16 8k; |
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
scp -p -i <amazon private key file> <file to transfer> root@<ec2-....compute-1.amazonaws.com>:<destination file in amazon server> |
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
<header class="cmp-header"> | |
<div class="gmg-section-wrapper gmg-row gmg-gutter"> | |
<div class="gmg-header-logo gmg-col gmg-col-2"> | |
<a href="${properties.logoURL}.html"> | |
<img src="${properties.fileReference @context = 'html'}" alt="gMG CYCLE" /> | |
</a> | |
</div> | |
<nav class="gmg-menu-container gmg-col gmg-col-14" > |
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 Employee { | |
var manager: Employee? | |
var reports: [Employee] = [] | |
} | |
let hulio = Employee() | |
hulio.reports = [Employee(), Employee(), Employee()] | |
hulio.reports.forEach{ $0.manager = hulio} |
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
import Rx from "rxjs"; | |
import r from "ramda"; | |
export class Swipe { | |
constructor(dom) { | |
let xDown = null; | |
let yDown = null; | |
this.observer = new Rx.Subject(); |