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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
using System; | |
class Customer | |
{ | |
public string City { get; set; } | |
} | |
class Customers | |
{ | |
private Customer c; |
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
rundll32 winsta.dll,WinStationSwitchToServicesSession |
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
@echo off | |
SET MyPath=%PATH% | |
echo %MyPath% | |
echo -- | |
setlocal EnableDelayedExpansion | |
SET TempPath="%MyPath:;=";"%" | |
SET var= |
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
rem @echo off | |
if ("%1")==() goto endloop | |
if not (%2)==() cd "%2" | |
for /D "%%i" in (*) do if not "%%i"=="%1" ren "%%i" "%1" | |
pushd "%1" | |
"%0" "%1" | |
popd | |
:endloop |
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
// ==UserScript== | |
// @name UTM param stripper | |
// @author Paul Irish | |
// @namespace http://github.com/paulirish | |
// @version 1.2 | |
// @description Drop the UTM params from a URL when the page loads. | |
// @extra Cuz you know they're all ugly n shit. | |
// @include http*://*?* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name url: Medium remove location hash Greasemonkey | |
// @namespace http://efcl.info/ | |
// @description Remove location hash from medium | |
// @include *#.* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// TamperMonkey does not work well with hash '#' in @include urls: |
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
// ==UserScript== | |
// @name url: Medium remove location hash TamperMonkey | |
// @namespace http://efcl.info/ | |
// @description Remove location hash from medium | |
//// @include https://voice.kadira.io/* | |
//// @include https://medium.com/* | |
// @include /^https://.+-[a-z0-9]{11,12}$/ | |
// @version 1 | |
// @grant none | |
// ==/UserScript== |
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
javascript:history.pushState("", document.title, window.location.pathname + window.location.search); |
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 | |
^((?:http|https)://(?:[a-z0-9]+\.|)slideshare\..+)\?.+$ | |
To | |
$1 |
OlderNewer