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
var __break = (function() { | |
"use strict"; | |
// as we need to keep original functions, we will use clousers to keep a original functions here. | |
var cache = {}, | |
cArray = function(args) { return Array.prototype.slice.call(args); }, | |
concat = function() { return cArray(arguments).join(""); }; | |
// funcName - name of the function, full name accessable from global object. |
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
<html> | |
<head> | |
<style> | |
body { | |
background-color: inactivecaptiontext; | |
} | |
</style> | |
<title>charCode/keyCode/which example</title> | |
<!--<script src="shortcuts.js" type="text/javascript"></script>--> |
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 glob syntax | |
syntax: glob | |
node_modules/ | |
*.csproj.user | |
*.obj | |
*.pdb | |
*.user | |
*.aps | |
*.pch |
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 Tumblr customization | |
// @description remove click-through link, scroll down to save button | |
// @include http://www.tumblr.com/reblog/* | |
// ==/UserScript== | |
(function() { | |
var get = function(id) { return document.getElementById(id); }, | |
linkField = get('post_three'), | |
saveButton = get('save_button'); | |
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
select * from syscomments sc, sysobjects so where so.id = sc.id and so.type = 'P' and user_name(so.uid) = 'dbo' and text like '%some text%' | |
/* group by name */ | |
select so.name from syscomments sc, sysobjects so where so.id = sc.id and so.type = 'P' and user_name(so.uid) = 'dbo' and sc.text like '%some text%' group by so.name |
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 osql="C:\Program Files\Microsoft SQL Server\100\Tools\Binn\OSQL.EXE" | |
set wzzip="C:\Program Files (x86)\WinZip\wzzip.exe" | |
set backup_location=C:\temp\ | |
set archive_location=C:\temp\ | |
set server_name=(local)\SQLEXPRESS | |
set database01=Tfs_DefaultCollection | |
set database02=Tfs_Configuration |
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; | |
using System.Diagnostics; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
private static Action<object> wl = o => Console.WriteLine(o.ToString()); | |
static void Main(string[] args) |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<access-policy> | |
<cross-domain-access> | |
<policy> | |
<allow-from http-request-headers="*"> | |
<domain uri="http://*"/> | |
</allow-from> | |
<grant-to> | |
<resource path="/" include-subpaths="true"/> | |
</grant-to> |
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: CALL read_last_line.bat "filename" | |
:: used: http://stackoverflow.com/a/523301/84852 | |
@echo off | |
setLocal EnableDelayedExpansion | |
for /f "tokens=* delims= " %%a in (%1) do ( | |
set var=%%a | |
) |
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
---------- Forwarded message ---------- | |
From: Mark S. Miller <erights@google.com> | |
Date: Tue, Nov 16, 2010 at 3:44 PM | |
Subject: "Future of Javascript" doc from our internal "JavaScript Summit" | |
last week | |
To: javascript-standard@google.com | |
On November 10th and 11th, a number of Google teams representing a variety | |
of viewpoints on client-side languages met to agree on a common vision for | |
the future of Javascript. |