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-AzureDisk | where {$_.AttachedTo -eq $null} | select DiskName |
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-AzureDisk | where {$_.AttachedTo -eq $null} | Remove-AzureDisk |
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
include() { | |
eval "$(cat "$(dirname "$0")/$1")" | |
} |
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
#include <iostream> | |
struct String | |
{ | |
String() | |
{ | |
} | |
String(const String&) |
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
#pragma once | |
#include <experimental/filesystem> | |
#include <windows.h> | |
class MemoryMappedFile { | |
public: | |
using path = std::experimental::filesystem::path; |
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
// Leanpub: recovering lost manuscript | |
// ----------------------------------- | |
// | |
// I lost the whole content of my Leanpub book after switching to GitHub. | |
// Fortunately, the manuscript files were still on my browser local storage. | |
// I was able to recover the complete manuscript using the following script. | |
// | |
// If this happens to you too, follow these steps: | |
// | |
// 1. Open your browser to https://leanpub.com |
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
void setup() { | |
Serial.begin(115200); | |
while (!Serial); | |
Serial.println("-------------------------------------"); | |
recurse(); | |
} | |
void recurse() | |
{ | |
char buffer[4096]; |
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 fs = require('fs') | |
const path = require('path') | |
var licenses = [] | |
var node_modules = path.resolve('./frontend/node_modules') | |
var meta = JSON.parse(fs.readFileSync('./frontend/package.json', 'utf8')) | |
for( var module in meta.dependencies ) { | |
try { |
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
// ArduinoJson - arduinojson.org | |
// Copyright Benoit Blanchon 2014-2018 | |
// MIT License | |
#include <ArduinoJson.h> | |
#include <Ethernet.h> | |
#include <SPI.h> | |
void setup() { | |
// Initialize Serial port |
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
git ls-remote --heads https://pdfium.googlesource.com/pdfium.git | grep -ohP 'chromium/\d+' | tail -n1 |