Original Blog Post about this topic
On click it toggles the visualize-style
just use the javascript code and add it as a bookmark:
Original Blog Post about this topic
On click it toggles the visualize-style
just use the javascript code and add it as a bookmark:
(function CalculateNewSizes(){ | |
var width, height, nWidth, nHeight, tmp; | |
tmp = prompt('Current dimensions 123x1234: ').split('x'); | |
width = tmp[0]; | |
height = tmp[1]; | |
tmp = prompt('Set a new value for width. (prefix h for new Height)').replace(/ /g, ''); | |
if(tmp.indexOf('h') !== -1) { | |
nHeight = tmp.replace(/h/, ''); | |
nWidth = parseInt(width*nHeight/height); | |
} else { |
// there were people suggesting using async or event-stream | |
// this is the way easier solution to run a taks after another taks is done | |
gulp.task('compileAssets', function() { | |
return gulp.src('assets/*').pipe(compile()); // the return is essential! | |
}); | |
// compileAssets is a dependency | |
gulp.task('serve', ['compileAssets'], function() { | |
return gulp.src('app/**/*.js').pipe(startWebserver()); |
javascript:(function() { var s,r,c; var l = window.location; if(l.origin.indexOf('github.io') !== -1) { r = /(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/i; s = window.location.origin.match(r)[1]; window.location.href='https://github.com/' + s + l.pathname; } else if(l.origin.indexOf('github.com') !== -1) { s = window.location.pathname.split('/')[1]; c = window.location.pathname.split('/')[2]; window.location.href='http://' + s + '.github.io/' + c; }})(); |
// ==UserScript== | |
// @name Mark Visited Links on GitHub | |
// @namespace http://github.visited.links/ | |
// @version 0.1 | |
// @description Mark visited links with a significant color, to see in the repos you have already visited. | |
// @match https://github.com/ | |
// @copyright 2014, Pascal Weiland | |
// ==/UserScript== | |
(function() { |
for Nginx and Apache
(a normal reverse tunnel: ssh -R 61001:localhost:22 user@myhost.tld
)
Asuming your local application runs on port 3000
(http://localhost:3000/
in the browser shows your nice webpage) we login with a user noroot
and the ssh port 22
on the host myhost.tld
to forward that to the server port 61001
. Being logged in on the the server noroot@myhost.tld:22
the command curl -v http://localhost:61001/
should be equal to on the local machine http://localhost:300
just run: ssh -i ~/.ssh/server.key -l noroot -p 22 myhost.tld -R 61001:localhost:3000
var forEach = Array.prototype.forEach, | |
_$ = document.querySelectorAll.bind(document); | |
forEach.call(_$('.className'), function(element) { | |
}); |
<a href="#" onclick="location.href='?d=' + (new Date()).getTime() + ''; return false;">reload</a> |
(function() { | |
var CurrentPage = window.location.href; | |
var CurrentUserAgent = window.navigator.userAgent; | |
var MailTo = 'MITARBEITER@EMAIL'; | |
var MailFrom = 'Pascal'; | |
var MailBody = ('Hi, <br><br>' | |
+ 'Fehler: <br>' | |
+'Seite: ' + CurrentPage + '<br>' | |
+'System: ' + CurrentUserAgent + '<br>' | |
+'Vorgehensweise:' |
public class RouteConfig | |
{ | |
public static void RegisterRoutes(RouteCollection routes) | |
{ | |
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |
// add this block \o/ | |
routes.MapRoute( | |
name: "single", | |
url: "{controller}/{id}", |