This file contains 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
Environment: | |
Request Method: GET | |
Request URL: http://localhost:8000/admin/pages/6/edit/ | |
Django Version: 2.1.7 | |
Python Version: 3.6.3 | |
Installed Applications: | |
('django.contrib.admin', |
This file contains 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
window.onload = function() { | |
let button = document.getElementById("submit-button"); | |
console.log(button); | |
button.addEventListener("click", function(event){ | |
event.preventDefault(); | |
send_data("http://localhost:3000") | |
}, false); | |
function send_data(url) { |
This file contains 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
extern crate hyper; | |
extern crate futures; | |
extern crate unicase; | |
extern crate tokio_core; | |
use hyper::header::{Headers, ContentLength, AccessControlAllowOrigin, AccessControlAllowHeaders}; | |
use hyper::Body; | |
use hyper::server::{Http, Request, Response, Service}; | |
use std::process::Command; | |
use std::ascii::AsciiExt; |
This file contains 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
extern crate hyper; | |
extern crate futures; | |
extern crate unicase; | |
use hyper::header::{Headers, ContentLength, AccessControlAllowOrigin, AccessControlAllowHeaders}; | |
use hyper::server::{Http, Request, Response, Service}; | |
use hyper::Body; | |
use hyper::Chunk; | |
use futures::Stream; | |
use futures::future::*; |
This file has been truncated, but you can view the full file.
This file contains 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
[2016-01-23 10:56:14,933][INFO ][node ] [Henry "Hank" McCoy] version[1.4.5], pid[2728], build[2aaf797/2015-04-27T08:06:06Z] | |
[2016-01-23 10:56:14,938][INFO ][node ] [Henry "Hank" McCoy] initializing ... | |
[2016-01-23 10:56:14,951][INFO ][plugins ] [Henry "Hank" McCoy] loaded [], sites [] | |
[2016-01-23 10:56:20,002][INFO ][node ] [Henry "Hank" McCoy] initialized | |
[2016-01-23 10:56:20,003][INFO ][node ] [Henry "Hank" McCoy] starting ... | |
[2016-01-23 10:56:20,144][INFO ][transport ] [Henry "Hank" McCoy] bound_address {inet[/127.0.0.1:9300]}, publish_address {inet[/###.##.##.##:9300]} | |
[2016-01-23 10:56:20,170][INFO ][discovery ] [Henry "Hank" McCoy] elasticsearch/LxzQYbczTu2TBuW9wgqhvA | |
[2016-01-23 10:56:23,950][INFO ][cluster.service ] [Henry "Hank" McCoy] new_master [Henry "Hank" McCoy][LxzQYbczTu2TBuW9wgqhvA][example.com][inet[/###.##.##.##:9300]], reason: zen-disco-join (elected_as_m |
This file contains 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
from django.utils.safestring import mark_safe | |
from markdown import markdown | |
from pygments import highlight | |
from pygments.formatters import get_formatter_by_name | |
from pygments.lexers import get_lexer_by_name | |
from wagtail.wagtailcore import blocks | |
class CodeBlock(blocks.StructBlock): |
This file contains 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
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'handlers': { | |
'console': { | |
'class': 'logging.StreamHandler', | |
}, | |
}, | |
'loggers': { | |
'django': { |
This file contains 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
#!/bin/bash | |
for entry in `ls`; do | |
if [[ $entry =~ .*\.epub ]] ; then | |
folderName=${entry:0:13}'_eBook' | |
mkdir -p $folderName; | |
mv $entry $folderName | |
fi | |
done |