Create RAM disk in macOS High Sierra (10.13.3), macOS Monterey (12.6.5) ARM, macOS Sonoma (14.5) ARM
Tested on macOS Monterey (12.6.5) with Apple M1 Pro chip (ARM architecture)
Tested on macOS Sonoma (14.5) with Apple M1 Pro chip (ARM architecture)
/* | |
Simplest method to do a REST API calls in c# with basic .NET classes. | |
I use it when communicationg with Recurly.com REST services. | |
*/ | |
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.IO; |
public static class AbsoluteUrl | |
{ | |
private static bool initializedAlready = false; | |
private static Object initlock = new Object(); | |
// AbsoluteUrl without parameters | |
public static string MVC_Home_Index; | |
public static string MVC_MyArea_Settings_Index; | |
// AbsoluteUrl with parameters |
using System; | |
using System.Net; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
public class WebClientEx : WebClient | |
{ | |
public WebClientEx(CookieContainer container) |
using System; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
namespace DHlavaty | |
{ | |
public class Zendesk | |
{ | |
/* |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
using System; | |
using System.Globalization; | |
using System.Text; | |
namespace TC | |
{ | |
// Removes diacritics from a string | |
// | |
// Original version by Michael Kaplan: | |
// -> http://blogs.msdn.com/b/michkap/archive/2007/05/14/2629747.aspx |
function toLiteral() { | |
var t = atom.workspace.getActiveTextEditor().getSelectedText(); | |
t = t.replace(/\' \+ /g, "${"); | |
t = t.replace(/ \+ \'/g, "}"); | |
if (t.indexOf("'") == 0) { | |
t = t.substring(1); | |
} else { | |
t = "${" + t; |
// Use https://www.sassmeister.com/ to try it out | |
$have: #dfe2e5; | |
$need: #e1e4e6; | |
//$need: #d8dbe1; | |
//$out: saturate(darken($have, 2.15), 2.7); | |
$out: desaturate(lighten($have, 0.58), 1.25); |
package main | |
import ( | |
"fmt" | |
"math/big" | |
"sync" | |
) | |
func runInThread(wg *sync.WaitGroup, startFrom int64, numOfIterations int64) { | |
defer wg.Done() |