Recent events have shown that the auto-approval for user proxies is way too dangerous.
Security of users' NFTs should come before the convenience of auto approving collection for trading.
This is why I decided to remove the files in this gist.
Picking the right architecture = Picking the right battles + Managing trade-offs
import matplotlib.pyplot as plt | |
def draw_neural_net(ax, left, right, bottom, top, layer_sizes): | |
''' | |
Draw a neural network cartoon using matplotilb. | |
:usage: | |
>>> fig = plt.figure(figsize=(12, 12)) | |
>>> draw_neural_net(fig.gca(), .1, .9, .1, .9, [4, 7, 2]) | |
/* | |
* Copyright 2017 Ben D'Angelo | |
* | |
* MIT License | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
* software and associated documentation files (the "Software"), to deal in the Software | |
* without restriction, including without limitation the rights to use, copy, modify, merge, | |
* publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
* to whom the Software is furnished to do so, subject to the following conditions: |
server { | |
root /path/to/app/public; | |
index index.php; | |
server_name test.dev; | |
set $cors_headers "whatever-custom-headers,you-would-like"; | |
# redirection to index.php | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
using System.Collections; | |
using System.Collections.Generic; | |
public class GameEvent | |
{ | |
} | |
public class Events | |
{ | |
static Events instanceInternal = null; |
var system = require('system'); | |
var page = require('webpage').create(); | |
var url = "http://www.boston.com/bigpicture/"; | |
var scrap = function(){ | |
var r = {}; | |
r.imgCount = $('img.bpImage').length; | |
r.imgURL = []; |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |