This specification defines Command Line Arguments level 1 (CLARG 1.0). This document aims to direct development of command line tools conform to a set of rules while parsing options.
The different type of arguments are:
- Short Option
- Long Option
using System; | |
using System.Net.Http.Headers; | |
using System.Net.Http.Formatting; | |
using System.IO; | |
using System.Threading; | |
using System.Net.Http; | |
using GraphQL; | |
using GraphQL.Types; | |
namespace GraphQLWebAPI.Formatters |
Write a program in any language of your choice that has a function that sorts the json data by Name in alphabetical order and Age and returns the result.
E.g.
function sortData(arr) {
// ... do stuff to sort the array
return arr;
}
var FriendsContainer = React.createClass({ | |
getInitialState: function(){ | |
alert('In getInitialState'); | |
return { | |
name: 'Tyler McGinnis' | |
} | |
}, | |
// Invoked once before first render | |
componentWillMount: function(){ | |
// Calling setState here does not cause a re-render |
To find out the program interfering with port 80 on Mac,
sudo lsof -i:80
If it's httpd
it's the Apache Service, so use the command in kill-apache.sh
in your terminal to shut it down, then valet restart
If you get a 404, try valet link
in your app directory.
From http://www.nigeria-law.org/ConstitutionOfTheFederalRepublicOfNigeria.htm
array.prototype.js
in your consolescraper.js
in your console. It shoulkd return an array which contains the information on the page.<?php | |
function cast($object, $class) { | |
if( !is_object($object) ) | |
throw new InvalidArgumentException('$object must be an object.'); | |
if( !is_string($class) ) | |
throw new InvalidArgumentException('$class must be a string.'); | |
if( !class_exists($class) ) | |
throw new InvalidArgumentException(sprintf('Unknown class: %s.', $class)); | |
$ret = app($class); |
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Diagnostics; | |
using Newtonsoft.Json; | |
using System.Text; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.