As configured in my dotfiles.
start new:
tmux
start new with session name:
Class RegManager{ | |
public static void main(String[] args){ | |
/** | |
Create a class and put this methods inside. | |
1. For inserting your registration key into the registry | |
2. For reading values from the registry | |
import the classes in the registry.zip to this class | |
and add the lib in the lib.zip to this project class path |
Array.prototype.peek = function () { | |
return this[this.length - 1]; | |
}; | |
/** | |
*This function accepts a string input for calculation, turns it into | |
*an array of token in infix notation, futher into postfix notation and | |
*returns an answer to the inputStr passed in or false if an error was | |
*found in the inputStr | |
**/ | |
function infix2postfix(inputStr) { |
http { | |
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m; | |
proxy_temp_path /var/tmp; | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
keepalive_timeout 65; | |
gzip on; | |
gzip_comp_level 6; |
As configured in my dotfiles.
start new:
tmux
start new with session name:
export class Observable_ extends Observable { | |
private _json: Object = {}; | |
constructor(key: string, args: Object) { | |
super(args); | |
this._json = (args != null && typeof args === 'object') ? args : {};//initialize object | |
} | |
public set(name: string, value: any) { | |
this._json[name] = value; |
for (var i = 1; i < 99999; i++) { | |
window.clearInterval(i); | |
window.clearTimeout(i); | |
if(window.mozCancelAnimationFrame)window.mozCancelAnimationFrame(i); // Firefox | |
} |
/** | |
* Donor.js | |
* | |
* @description :: TODO: You might write a short summary of how this model works and what it represents here. | |
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models | |
*/ | |
const shortid = require('shortid'); | |
module.exports = { |
# location for config | |
# /etc/apache2/conf-available/php5.6-fpm.conf" | |
<IfModule mod_fastcgi.c> | |
AddHandler php5.6-fcgi .php | |
Action php5.6-fcgi /php5.6-fcgi | |
Alias /php5.6-fcgi /usr/lib/cgi-bin/php5.6-fcgi | |
FastCgiExternalServer /usr/lib/cgi-bin/php5.6-fcgi -socket /var/run/php/php5.6-fpm.sock -pass-header Authorization -idle-timeout 3600 | |
<Directory /usr/lib/cgi-bin> | |
Require all granted | |
</Directory> |
import { Injectable, EventEmitter } from '@angular/core' | |
import { Subject } from 'rxjs/Subject' | |
import { Donor } from './donor.interface' | |
import * as socketIO from 'socket.io-client' | |
import * as sailsIO from 'sails.io' | |
const url = 'http://localhost:1337' |