One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| syntax on | |
| :colorscheme desert | |
| :set number | |
| :set tabstop=4 | |
| inoremap jk <ESC> | |
| let mapleader = "\<SPACE>" | |
| set encoding=utf-8 |
| export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\] \$ " | |
| export CLICOLOR=1 | |
| export LSCOLORS=ExFxBxDxCxegedabagacad | |
| alias ls='ls -GFh' | |
| alias ll='ls -l' | |
| alias gco='git checkout' |
| public getDirtyValues(form: any) { | |
| let dirtyValues = {}; | |
| Object.keys(form.controls).forEach(key => { | |
| const currentControl = form.controls[key]; | |
| if (currentControl.dirty) { | |
| if (currentControl.controls) { | |
| dirtyValues[key] = this.getDirtyValues(currentControl); | |
| } else { | |
| dirtyValues[key] = currentControl.value; |
| function fireEvent(element,event) | |
| { | |
| if (document.createEventObject) | |
| { | |
| // dispatch for IE | |
| var evt = document.createEventObject(); | |
| return element.fireEvent('on'+event,evt); | |
| } | |
| else | |
| { |
| <?php | |
| /** | |
| * | |
| * Author: Josh Hathcock | |
| * | |
| * You are given a function 'secret()' that accepts a single integer parameter and returns an integer. In your | |
| * favorite programming language, write a command-line program that takes one command-line argument (a number) | |
| * and determines if the secret() function is additive [secret(x+y) = secret(x) + secret(y)], for all | |
| * combinations x and y, where x and y are all prime numbers less than the number passed via the command-line | |
| * argument. Describe how to run your examples. Please generate the list of primes without using built-in |
| jQuery(document).ready( function() { | |
| jQuery('.refer form').submit( function(){ | |
| return validateForm(this); | |
| }); | |
| }); | |
| jQuery(document).ready( function() { | |
| jQuery('#questionsContent form').submit( function(){ | |
| return validateForm(this); | |
| }); | |
| }); | |