This file contains hidden or 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 GreaseMonkey issue #1890 | |
// @namespace https://github.com/greasemonkey/greasemonkey/issues/1890 | |
// @include https://github.com/jerone?tab=activity | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
alert('test'); |
This file contains hidden or 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 OpenUserJS.org Export Cert | |
// @namespace http://OpenUserJS.org | |
// @homepageUrl http://OpenUserJS.org | |
// @include http://userscripts.org/home/scripts | |
// @version 1 | |
// @grant GM_openInTab | |
// ==/UserScript== | |
(function () { | |
var userId = document.evaluate('//li[@class="menu"]/a[text()[contains(.,"public profile")]]', document, null, 9, null) .singleNodeValue.href.match(/(\d+)/) [0]; |
This file contains hidden or 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.Windows.Forms; | |
using System.Drawing; | |
using System.Collections.Generic; | |
public static class ClipboardFusionHelper | |
{ | |
private static String Truncate(String text, Int32 count=1) | |
{ | |
if (count > 0 && text.Length > count) |
This file contains hidden or 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
content/addons4-overlay.xul | 30 ++++++++++++++++++------------ | |
1 file changed, 18 insertions(+), 12 deletions(-) | |
diff --git a/content/addons4-overlay.xul b/content/addons4-overlay.xul | |
index 8016358..fc55b16 100644 | |
--- a/content/addons4-overlay.xul | |
+++ b/content/addons4-overlay.xul | |
@@ -45,18 +45,24 @@ | |
label="&Show;" accesskey="&Show.accesskey;" class="greasemonkey greasemonkeyNoHide" | |
/> |
This file contains hidden or 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
// GET: /Brokers/Edit/5 | |
public ActionResult Edit(Guid id) | |
{ | |
Broker broker = db.Brokers.Find(id); | |
if (broker == null) | |
{ | |
return HttpNotFound(); | |
} | |
ViewBag.BrokerValues = GetBrokerValues(broker); |
This file contains hidden or 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
/// C# float differences: | |
-3.40282347E+38 // float.MinValue | |
-3.402823E+38 // database | |
float.MinValue == float.Parse(float.MinValue.ToString()) // false | |
float.MinValue == Convert.ToSingle(float.MinValue) // true |
This file contains hidden or 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
net stop uxsms | |
net start uxsms |
This file contains hidden or 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.Windows.Forms; | |
namespace Script | |
{ | |
public class Script | |
{ | |
public void Main() | |
{ | |
int no = 52123456; |
This file contains hidden or 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
function has3D() { | |
var has3D, | |
el = document.createElement("p"), | |
transforms = { | |
'WebkitTransform': '-webkit-transform', | |
'OTransform': '-o-transform', | |
'MSTransform': '-ms-transform', | |
'MozTransform': '-moz-transform', | |
'Transform': 'transform' | |
}; |