Here are several different ways to test a TCP port without telnet.
BASH (man page)
$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C
$ cat < /dev/tcp/127.0.0.1/23
Here are several different ways to test a TCP port without telnet.
$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C
$ cat < /dev/tcp/127.0.0.1/23
#!/usr/bin/python | |
print "Converting all of the .dav files in this current directory into .mp4 files using ffmpeg" | |
import os | |
from subprocess import call | |
files = [f for f in os.listdir('.') if os.path.isfile(f)] | |
for f in files: | |
ext = f.split(".")[-1] | |
if ext == "dav" or ext == "DAV": |
module.exports = angular.module('com.good.company.directive', []); | |
angular.module('com.good.company.directive') | |
.directive('myDirective', [ | |
// directive definition ... | |
]); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> | |
<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script> | |
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.css' rel='stylesheet' /> |
(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.
source | target | weight | |
---|---|---|---|
sam | tully | 3 | |
sam | pat | 8 | |
sam | kim | 2 | |
sam | pris | 1 | |
roy | pris | 5 | |
roy | sam | 1 | |
tully | sam | 1 | |
tully | pris | 5 | |
tully | kim | 3 |
source | target | value | |
---|---|---|---|
Harry | Sally | 1.2 | |
Harry | Mario | 1.3 | |
Sarah | Alice | 0.2 | |
Eveie | Alice | 0.5 | |
Peter | Alice | 1.6 | |
Mario | Alice | 0.4 | |
James | Alice | 0.6 | |
Harry | Carol | 0.7 | |
Harry | Nicky | 0.8 |
Selectively applying path markers from a simple collection.
license: gpl-3.0 |
First attempt at making a colour-coded graph, with code snippets inspired from the D3 community.
Green => Friend and follower.
Red => Follower
Blue => Friend.
Improvements needed: