We are using ngAnimate / $animate service for AngularJS to slide a list item out from the above list item similar to list animations on the iPhone.
This AngularJS List Animation application is a Pen by R4z3r on CodePen.
[ Launch: Reddit Bar Chart ] 12c16941e5db0ddb6fce by kkirsche
Shortcut — Action
CTRL + A
— Move to the beginning of the lineCTRL + E
— Move to the end of the lineCTRL + [left arrow]
— Move one word backward (on some systems this is ALT + B)CTRL + [right arrow]
— Move one word forward (on some systems this is ALT + F)CTRL + U
(bash) — Clear the characters on the line before the current cursor positionCTRL + U
(zsh) — If you're using the zsh, this will clear the entire lineCTRL + K
— Clear the characters on the line after the current cursor positionESC + [backspace]
— Delete the word in front of the cursor# Use strings for un_num to avoid octal number interpretation | |
@countries = { | |
afghanistan: { | |
name: 'Afghanistan', | |
iso: 'AF', | |
un_a3: 'AFG', | |
un_num: '004', | |
dial: 93 | |
}, | |
albania: { |
from base64 import b64encode; | |
from os import urandom; | |
from sys import argv; | |
def random_bytes(bytes): | |
random_bytes = urandom(bytes); | |
return b64encode(random_bytes).decode('utf-8'); | |
if len(argv) > 1: | |
byte_value = int(argv[1]) |
# simple match all query with term facet | |
ejs.Request() | |
.indices("myindex") | |
.types("mytype") | |
.query(ejs.MatchAllQuery()) | |
.facet( | |
ejs.TermsFacet('url') | |
.field('url') | |
.size(20)) |
def is_valid_ipv4(ip): | |
"""Validates IPv4 addresses. | |
""" | |
pattern = re.compile(r""" | |
^ | |
(?: | |
# Dotted variants: | |
(?: | |
# Decimal 1-255 (no leading 0's) | |
[3-9]\d?|2(?:5[0-5]|[0-4]?\d)?|1\d{0,2} |
#!/usr/bin/env ruby | |
# Full Contol on Ethnet, IP & TCP headers. Play with it ;) | |
# to test it: nc -lvp 4444 | |
# as root: tcpdump -nvvvv 'tcp port 4444' -i wlan0 # change wlan0 to your interface | |
# or use packetfu to monitor as tcpdump | |
## cap = PacketFu::Capture.new(:iface => 'wlan0' , :promisc=> true) | |
## cap.show_live(:filter => 'tcp and port 4444') | |
# libpcap should be installed | |
# gem install pcaprub packetfu |