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; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApp1 | |
{ | |
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
using System; | |
using System.Linq; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
intr($"asdf{""}{"bsdf"}"); // Format=asdf{0}{1}, Arguments=“”,“bsdf” | |
intr($"asdf{""}bsdf"); // Format=asdf{0}bsdf, Arguments=“” | |
} |
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
C:\Users\ohnob>.\readUnicodeCsv.py | |
勇気 |
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
class BinkiBinarySearch { | |
/** | |
Input: `arr` is a sorted array, `sought` is a sought value, | |
`cmp` a comparer which when called like `cmp(a, b)` returns -1 | |
if `a` comes before `b`, 0 if `a` and `b` are of the same | |
order, and 1 if `a` comes after `b`. | |
Returns: -1 if something equivalent to `sought` is not found, | |
index of any element matching `sought` otherwise. | |
**/ |
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
#!/usr/bin/env python3 | |
from os.path import dirname, realpath | |
import sys | |
from timeit import Timer | |
sys.path.append(dirname(realpath(__file__))) | |
def ifway3(b): | |
a=1 | |
if not b == 0: |
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; | |
namespace LocalFuncCreatesClass | |
{ | |
class Program | |
{ | |
static Func<int> GetNextThing { get; set; } | |
static void Main(string[] args) | |
{ | |
var current = 2; |
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; | |
namespace LocalFuncCreatesClass | |
{ | |
class Program | |
{ | |
static Func<int> GetNextThing { get; set; } | |
static void Main(string[] args) | |
{ | |
SeparateFunction(); |
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.Runtime.CompilerServices; | |
namespace LocalFuncCreatesClass | |
{ | |
internal class Program | |
{ | |
private static Func<int> GetNextThing | |
{ | |
get; |
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
SET IMPLICIT_TRANSACTIONS ON | |
GO | |
IF OBJECT_ID('dbo.t1') IS NOT NULL | |
BEGIN | |
DROP TABLE dbo.t1 | |
COMMIT | |
END | |
GO | |
CREATE TABLE dbo.t1 (x INT); | |
GO |
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
#!/usr/bin/env python3 | |
my_var = 23 |