Skip to content

Instantly share code, notes, and snippets.

export class Coordinates {
latitude: string | number;
longitude: string | number;
accuracy?: number;
constructor(that?: Coordinates) {
if (that) {
this.latitude = +that.latitude;
this.longitude = +that.longitude;
this.accuracy = +that.accuracy;
@ackuser
ackuser / angular.md
Created November 30, 2017 14:13 — forked from sinedied/angular.md
The Missing Introduction to Angular 2 and Modern Design Patterns

Introduction to Angular

Angular (aka Angular 2) is a new framework completely rewritten from the ground up, replacing the famous AngularJS framework (aka Angular 1.x).

More that just a framework, Angular should now be considered as a whole platform which comes with a complete set of tools, like its own CLI, debug utilities or performance tools.

Getting started

@ackuser
ackuser / install-pulse.sh
Created January 11, 2018 14:41 — forked from tafarij/install-pulse.sh
Install Pulse Secure on Ubuntu 16.04
# https://vt4help.service-now.com/kb_view_customer.do?sysparm_article=KB0010740#linux
wget https://secure.nis.vt.edu/resources/downloads/pulse-8.2R5.i386.deb
sudo dpkg –i pulse-8.2R5.i386.deb
/usr/local/pulse/PulseClient.sh install_dependency_packages
@ackuser
ackuser / cygwin_ssh_client_keep_alive.txt
Created January 15, 2018 10:49 — forked from hinst/cygwin_ssh_client_keep_alive.txt
Cygwin SSH Client keep alive // how to enable
If you use Cygwin and SSH and you are frustrated because you lose server connection after some time, then this could help you:
create the file cygwin/etc/ssh_config
place the following text:
KeepAlive yes
ServerAliveInterval 60
restart cygwin shell
pragma solidity ^0.4.0;
contract MyCoins {
mapping(address => uint) balances;
function MyCoins(address owner) public {
balances[owner] = 1000000;
}
function tranferCoins(address sender, address receiver, uint amount) public {
sqoop list-databases \
--connect jdbc:mysql://ms.itversity.com:3306 \
--username retail_user \
--password itversity
sqoop list-tables \
--connect jdbc:mysql://ms.itversity.com:3306/retail_db \
--username retail_user \
--password itversity
@ackuser
ackuser / hover-class.directive.ts
Created April 23, 2018 12:12 — forked from TigorC/hover-class.directive.ts
Angular 2 hover class directive
import { Directive, Input, HostListener, Renderer, ElementRef } from '@angular/core';
@Directive({ selector: '[hoverClass]' })
export class HoverClassDirective {
@Input()
hoverClass: string;
constructor(
public elementRef: ElementRef,
public myForm: FormGroup
constructor(private formBuilder: FormBuilder) { }
ngOnInit() {
this.myForm = this.formBuilder.group({
enabledControl: ['hello'],
disabledControl: [{
value: 'world',
disabled: true
@ackuser
ackuser / setting-up-babel-nodemon.md
Created September 11, 2018 09:19 — forked from sam-artuso/setting-up-babel-nodemon.md
Setting up Babel and nodemon

Setting up Babel and nodemon

Inital set-up

Set up project:

mkdir project
cd project
npm init -y
@ackuser
ackuser / font-awesome-4.7.0.json
Created September 20, 2018 16:09 — forked from zwinnie/font-awesome-4.7.0.json
JSON Of All Font Awesome 4.7.0 Icons
{
"4.7.0": [
"fa-500px",
"fa-address-book",
"fa-address-book-o",
"fa-address-card",
"fa-address-card-o",
"fa-adjust",
"fa-adn",
"fa-align-center",