File server.js
:
var http = require('http');
var querystring = require('querystring');
var server = http.createServer().listen(3000);
server.on('request', function (req, res) {
\documentclass[a4paper, 12pt]{article} | |
\usepackage[letterpaper, margin=2cm]{geometry} | |
\usepackage[T1]{fontenc} | |
\usepackage{beramono} | |
\usepackage{listings} | |
\usepackage{xcolor} | |
\newcommand\realnumberstyle[1]{} |
function querySlotted(root, selector) { | |
let slots = root.querySelectorAll('slot'); | |
let matched = []; | |
slots.forEach((slot) => { | |
matched = matched.concat(slot.assignedNodes().filter((el) => { | |
return el.matches(selector); | |
})); | |
}); | |
return matched; | |
} |
server { | |
listen 80; | |
server_name localhost; | |
root /Users/YOUR_USERNAME/Sites; | |
access_log /Library/Logs/default.access.log main; | |
location / { | |
include /usr/local/etc/nginx/conf.d/php-fpm; | |
} |
var str = 'AAABCCDEEE'; | |
var expected = '3A1B2C1D3E'; | |
var result = _.reduce(str+'\0',(a,c,i,s)=>{if(i&&s[i-1]!== c){a.r+=a.c+s[i-1];a.c=1;}else{a.c++;}return a;},{c:0,r:''}).r | |
result === expected; |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
<div class="square"> | |
<div class="square-content"> | |
Hello world! | |
</div> | |
</div> |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#!/bin/bash | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |