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 Stars&Score onHover | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Show the StockFlare stars and StockInvest score onHover | |
// @author jabez007 | |
// @match https://stockflare.com/stocks | |
// @grant none | |
// @require http://code.jquery.com/jquery-3.3.1.min.js | |
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js |
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
function withACL(obj) { | |
const __properties__ = {}; | |
if (typeof(obj) === 'object') { | |
Object.keys(obj) | |
.forEach((key) => { | |
Object.defineProperty(this, key, { | |
get() { | |
if (!!__properties__[key].value) { | |
return __properties__[key].value; |
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
fetch("https://www.reddit.com/r/dailyprogrammer/").then((resp) => resp.text()).then((text) => { | |
let parser = new DOMParser(); | |
let doc = parser.parseFromString(text, "text/html"); | |
doc.querySelectorAll("a.SQnoC3ObvgnGjWt90zD9Z").forEach((a) => console.log(a.href));}) |
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; | |
namespace SliceableList | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var myList = new PyList<int>() | |
{ |
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
# disable SSL 2.0 | |
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server' -Force | |
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server' -name Enabled -value 0 –PropertyType DWORD | |
# disable SSL 3.0 | |
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server' -Force | |
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server' -name Enabled -value 0 –PropertyType DWORD | |
# enable TLS 1.1 | |
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server' -Force | |
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client' -Force | |
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server' -name 'Enabled' -value 1 –PropertyType DWORD |
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.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text.RegularExpressions; | |
using System.Web.Http.Controllers; | |
using System.Web.Http.Description; | |
using System.Xml.Linq; | |
using System.Xml.XPath; | |
namespace WebApi.Explorer |
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 iTextSharp.text; | |
using iTextSharp.text.pdf; | |
using iTextSharp.text.pdf.security; | |
using Org.BouncyCastle.Crypto; | |
using Org.BouncyCastle.Security; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Reflection; | |
using System.Security.Cryptography; |
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.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using System.Web; | |
using Microsoft.AspNet.SignalR; | |
using Microsoft.AspNet.SignalR.Hubs; | |
namespace MultiEditWithSignalRv2.SignalR |
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
/// <summary> | |
/// https://www.codeproject.com/articles/8398/wait-for-threads-in-a-threadpool-object-to-complet | |
/// Blocks until all worker threads have returned to the thread pool. | |
/// A good timeout value is 30 seconds. | |
/// </summary> | |
protected void WaitForThreads() | |
{ | |
int maxThreads = 0; | |
int placeHolder = 0; | |
int availThreads = 0; |
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.Net.Mail; | |
namespace EmailAnon | |
{ | |
public class AnonEmail | |
{ | |
private static readonly string smtpHost = ""; | |
private static readonly string smtpDomain = ""; | |
public static void Send(string to, string subject, string message) |