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.Collections.Generic; | |
using System.Linq; | |
IDocumentService service = new DocumentService(); | |
var context = new AuthContext { UserId = "123abc" }; | |
var anotherContext = new AuthContext { UserId = "456def" }; | |
var id = service.CreateDocument(context, "test document"); |
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
const ContentSelectors = [".content"]; | |
// clear a node of all its children | |
function empty(node) { | |
while (node.firstChild) { | |
node.removeChild(node.firstChild); | |
} | |
} | |
// delay for approximately X milliseconds |
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
@powershell -NoProfile -Command "&{New-Item -ItemType directory -Path .paket -ErrorAction Ignore ; Invoke-WebRequest (Invoke-WebRequest https://api.github.com/repos/fsprojects/paket/releases/latest | ConvertFrom-Json | Select-Object -ExpandProperty assets | Where-Object {$_.name -eq 'paket.bootstrapper.exe' }).browser_download_url -OutFile .\.paket\paket.bootstrapper.exe ; .\.paket\paket.bootstrapper.exe ; .\.paket\paket.exe init}" |
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.Threading; | |
namespace Suping | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var port = new System.IO.Ports.SerialPort("COM3", 57600); |
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.Net; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication11 | |
{ | |
class Program | |
{ |
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 JabbR: Admin Kick Banned Users | |
// @namespace http://jabbr.net.admin/ | |
// @version 0.1 | |
// @description Kick mother bitches from JabbR who have been a pesk. | |
// @match https://jabbr.net/* | |
// @copyright 2013+, JabbR people | |
// @require http://code.jquery.com/jquery-latest.js | |
// ==/UserScript== |