Skip to content

Instantly share code, notes, and snippets.

View cyrusdavid's full-sized avatar

Cyrus David cyrusdavid

  • Philippines
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
</body>
<textarea id="make-color-demo"></textarea> <button id="make">Please</button>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://www.checkman.io/please/js/Please-compressed.js"></script>
<script src="script.js"></script>
// jshint node:true, latedef:nofunc
'use strict';
var flo = require('fb-flo'),
gulp = require('gulp'),
path = require('path'),
map = require('map-stream'),
minimatch = require('minimatch'),
lazypipe = require('lazypipe'),
rimraf = require('rimraf'),

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt

MacOS

Download from here:

http://d.pr/f/QE3d

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to:

@cyrusdavid
cyrusdavid / nextTickSample.js
Created March 6, 2014 13:55
sample use case of process.nextTick on node.js
function Foo() {
var self = this;
require('events').EventEmitter.call(arguments, this);
// process.nextTick(function() {
self.emit('foo');
// });
}
require('util').inherits(Foo, require('events').EventEmitter);
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as you did, the {internet|net|web} will be {much more|a lot more} useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any? {Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe. Thanks.|
{It is|It's} {appropriate|perfect|the best} time to make some plans for the future and {it is|i
@cyrusdavid
cyrusdavid / index.html
Last active January 1, 2016 01:19 — forked from pelf/snow.html
<!DOCTYPE html>
<head>
<title>Snow</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
<script src="snow.js" type="text/javascript"/></script>
</head>
<body onload="init();">
<canvas id="bgcanvas" width="410" height="316" style="position:absolute;z-index:2"></canvas>
<img src="globe_layers_2.png" style="position:absolute;z-index:3">
<canvas id="fgcanvas" width="410" height="316" style="position:absolute;z-index:4"></canvas>
<!doctype html>
<html>
<head>
<title>Lumberjack Demo Page</title>
<script type="text/javascript" src="lumberjack.js"></script>
<script type="text/javascript">
console.log('Lovely day isn\'t it?');
console.stream('dog').info('Hooooooooooowl!!!');
<?php
return array(
'age' => 34
);