If you have many files of go test runs concat like so:
cat <path>/* > concat_tests.raw
Call: python t.py concat_tests.raw
import pybrain | |
from pybrain.datasets import * | |
from pybrain.tools.shortcuts import buildNetwork | |
from pybrain.supervised.trainers import BackpropTrainer | |
import pickle | |
if __name__ == "__main__": | |
ds = SupervisedDataSet(2, 1) | |
ds.addSample( (0,0) , (0,)) | |
ds.addSample( (0,1) , (1,)) |
func all(w http.ResponseWriter, r *http.Request) { | |
someText := "Some custom message for the redirect" | |
hj, ok := w.(http.Hijacker) | |
if !ok { | |
http.Error(w, "Webserver doesn't support hijacking", http.StatusInternalServerError) | |
return | |
} | |
conn, bufrw, err := hj.Hijack() | |
checkErr(w, err) |
<?php | |
/* Plugin Name: Damn Vulnerable WordPress Plugin | |
* Description: Intentionally vulnerable plugin for plugin author education | |
* Version: 0.1 | |
* Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/ | |
* Author: Jon Cave | |
* Author URI: http://joncave.co.uk | |
* License: GPLv2+ | |
* | |
* DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE |
1) Database: | |
table name (Eg. users) | |
field name (Eg. department_id) | |
2)Controllers: | |
Name_of_the_controller + _Controller. (Where the name of the controller normally starts with a capital letter. The filename should be the same with name of the controller.) | |
3) Models: | |
Name_Model (try to spesify in a single word (eg. no underscores). |
javascript: var x = 1 * prompt("Start From:", window.pageYOffset);var s = 1 * prompt("Speed:", 0.03);var time = document.createElement("div");time.style.position = "fixed";time.style.top = "90%";time.style.left = "90%";document.body.appendChild(time);if (x != null && s !== null) {window.setInterval(function () {if (x + window.innerHeight <= document.height) {x += s;document.body.scrollTop = x;time.innerHTML = ((document.height - (x + window.innerHeight)) / (s * 100)).toFixed(2) + "s";}}, 10);} |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
uglify: { | |
options: { | |
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + | |
'<%= grunt.template.today("yyyy-mm-dd") %> */' | |
}, | |
my_target: { |
up(){ | |
limit=$1 | |
startloc=`pwd` | |
for((i=1 ; i <= limit ; i++)) | |
do | |
cd .. | |
done | |
echo "From: $startloc" | |
echo 'To: ' `pwd` | |
} |
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
import React, { Component } from 'react' | |
import { AppRegistry, StyleSheet, Text, View, Navigator, ToolbarAndroid, TouchableHighlight } from 'react-native' | |
class reactgame extends Component { | |
render () { |
If you have many files of go test runs concat like so:
cat <path>/* > concat_tests.raw
Call: python t.py concat_tests.raw
// Change the details here: | |
const BASE_URL = "unzip.dev"; // Super cool newsletter you should check if you're a developer ;) | |
const api = new GhostAdminAPI({ | |
url: `https://${BASE_URL}`, | |
version: "v5.0", | |
key: "GHOST_API_TOKEN_HERE", | |
}); | |
const POST_ID = "POST ID (TAKE FROM DRAFT URL: /ghost/#/editor/post/{ID})"; | |
// TO RUN: node fixLinks.js |