Skip to content

Instantly share code, notes, and snippets.

View simon-mo's full-sized avatar

Simon Mo simon-mo

View GitHub Profile
@simon-mo
simon-mo / hw3.html
Created October 28, 2017 00:23
HW3 Issue
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
'',
'netsparker@example.com',
'%27',
'1 OR 1=1',
"'",
'(select convert(int,cast(0x5f21403264696c656d6d61 as varchar(8000))) from syscolumns)',
'NS1NO',
"1 AND 'NS='ss",
"' WAITFOR DELAY '0:0:25'--",
"1' OR 1=1 OR 'ns'='ns",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from __future__ import division
import time
import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import cv2
from util import *
import argparse
import os
/* Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,

Scenario

Let's say hw1 is released and there is a q1 requires you to sum the dataframe across rows.

Let's Make a Bad Piazza Post

@simon-mo
simon-mo / build_docker_images.sh
Created August 31, 2018 19:25
turn off namespace query and build torch only
#!/usr/bin/env bash
# This script builds all the Clipper Docker images and publishes the useful ones to
# Docker Hub (images that we don't publish are things like the unittest image and the
# shared dependency base that don't really make sense to distribute on their own).
# Each image that is built is tagged with two tags:
# + The current Git SHA: <image_name>:git_hash
# + The current version as read from VERSION.txt: <image_name>:version
# For the images that we publish, both tags will be pushed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.