from manimlib import * | |
class Streaming(Scene): | |
def construct(self): | |
fun = lambda x, y: np.sin(x/2) * UR + np.cos(y/2) * LEFT | |
sls = StreamLines( | |
fun, | |
NumberPlane(), | |
step_multiple=0.5, | |
stroke_width=2, |
# Amazon Linux 2 | |
#❯ ssh nat | |
#Last login: Sat Apr 23 07:24:49 2022 from xx.xxx.xxx.xxx | |
# | |
# __| __|_ ) | |
# _| ( / Amazon Linux 2 AMI | |
# ___|\___|___| | |
# | |
#https://aws.amazon.com/amazon-linux-2/ | |
#[ec2-user@ip-xxx-xx-xx-xx ~]$ |
application: you-app-name-here | |
version: 1 | |
runtime: python | |
api_version: 1 | |
default_expiration: "30d" | |
handlers: | |
- url: /(.*\.(appcache|manifest)) | |
mime_type: text/cache-manifest |
import logging | |
from lex_utils import elicit_slot, delegate, close, ElicitAction, DelegateAction | |
from utils import validate_dialog, init_or_load_session, finalize_session, actually_book_the_hotel | |
logger = logging.getLogger() | |
logger.setLevel(logging.DEBUG) | |
def lambda_handler(event, context): | |
logger.debug('event.bot.name=%s', event['bot']['name']) | |
logger.debug('userId=%s, intentName=%s', event['userId'], event['currentIntent']['name']) |
<?php | |
require 'vendor/autoload.php'; | |
/* | |
{ | |
"require": { | |
"guzzlehttp/guzzle": "^7.0", | |
"aws/aws-php-sns-message-validator": "^1.6", | |
"aws/aws-sdk-php": "^3.154", | |
"monolog/monolog": "^2.1", | |
"maxbanton/cwh": "^2.0" |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
##How Homakov hacked GitHub and the line of code that could have prevented it
Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.
If you'd like to follow me on twitter my handle is @peternixey
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
<div ng-app> | |
<div ng-controller="TestCtrl"> | |
<ul ng-repeat="elements in array" watchers-toggler="toggler()"> | |
<li ng-repeat="element in elements">{{element}}</li> | |
</ul> | |
</div> | |
</div> |