As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
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; |
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; |
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 |
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 = { |
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' |
var coinTypes = [25, 10, 5]; | |
var coinNb = [8, 12, 20]; | |
function computeChange(change,coinTypes, coinNb) { | |
var rez = []; | |
for (var i = 0; i < coinTypes.length; ++i) { | |
if (coinTypes[i] === 0) continue; | |
var coinsToGet = Math.floor(change / coinTypes[i]); | |
if (coinsToGet > coinNb[i]) { | |
coinsToGet = coinNb[i]; | |
} |
<select class="form-control" id="" name="state"> | |
<option value="Abia State">Abia State</option> | |
<option value="Adamawa State">Adamawa State</option> | |
<option value="Anambra State">Anambra State</option> | |
<option value="Akwa Ibom State">Akwa Ibom State</option> | |
<option value="Bauchi State">Bauchi State</option> | |
<option value="Bayelsa State">Bayelsa State</option> | |
<option value="Benue State">Benue State</option> | |
<option value="Borno State">Borno State</option> | |
<option value="Cross River State">Cross River State</option> |