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
lines = ''' | |
using Abc.Def; | |
namespace Abc.Hijk | |
{ | |
public class Haha: ILaugh | |
{ | |
public Haha() | |
{ | |
// Constructor |
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 Abc; | |
public class One | |
{ | |
public void Foo() | |
{ | |
// macro: set ClassName // Changes the assigned default or any value in the line below | |
string className = default; | |
Console.WriteLine(className + " Foo"); |
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
## // e.g. | |
## MBOverlay mbOverlay = UIUtil.GetBusyOverlay(AppStrings.LoadRevision); | |
## --> VML.LoaderViewModel.Add($"DoorSideBar-{AppStrings.LoadRevision}", Models.ActivityType.API, message: AppStrings.LoadRevision, activitySeverity: Models.ActivitySeverity.High); | |
## mbOverlay.Hide(); | |
## --> VML.LoaderViewModel.Remove($"DoorSideBar-{AppStrings.LoadRevision}"); | |
## // AppStrings.LoadRevision, Properties..., "", messages: List<string> | |
import os, re | |
# files = [f for f in os.listdir('.') if os.path.isfile(f)] |
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
# Remove the history from | |
rm -rf .git | |
# recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
# push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<account>/<repo>.git |
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
// Each account on a website has a set of access flags that represent a user's access. | |
// | |
// Update and extend the enum so that it contains three new access flags: | |
// | |
// [Flags] | |
// public enum Access | |
// { | |
// Delete = 1, | |
// Publish = 2, | |
// Submit = 3, |
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; | |
class Test | |
{ | |
static void Main() | |
{ | |
Console.WriteLine("Hello Sublime"); | |
} | |
} |
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
<style>body * { background-color: rgba(0,0,100, .2) !important; outline: rgba(0,100,0, .2) !important; }</style> |
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 () { | |
const __inp = ` | |
((defun foo (a b) | |
(* a b)) | |
(print (foo 2 3)) | |
(defun bar (a b c) (foo | |
(foo a b) | |
c)) | |
(print (bar 4 5 6)) |
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
#!/bin/python3 | |
DEBUG = False | |
import math | |
import os | |
import random | |
import re | |
import sys |
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
#!/bin/python3 | |
DEBUG = False | |
import os | |
import sys | |
def trie_find(node, path): | |
if not node.get(path[0]): | |
return 0 |