From | To | Expression |
---|
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
/* | |
Paste into console to get rid of annoying facebook login prompt on TOM | |
news articles. If you make a userscript for this remember to wrap this | |
in a document.onReady block. | |
*/ | |
document.getElementById("modal-fb_login").style.display = 'none'; |
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
# MaouTranslator.py | |
print (str.lower(input("Enter English text to be translated: ")).translate(str.maketrans("abcdefghijklmnopqrstuvwxyz","azyxewvtisrlpnomqkjhugfdcb"))) |
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
$Source = @" | |
namespace CSharpPSTest | |
{ | |
public static class PSTest | |
{ | |
private static string _result = "Default Value"; | |
public static string Get() | |
{ | |
return "Get Success: " + _result; | |
} |
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; | |
using Person = System.Tuple<string,string,int>; | |
namespace FunctionalCsharpExample | |
{ | |
class FunctionalCSharp | |
{ | |
static string CompareAge(Person a, Person b) | |
{ | |
if (a.Item3 == b.Item3) |
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; | |
namespace OOCSharpExample | |
{ | |
internal class OOCSharp | |
{ | |
private static void Main(string[] args) | |
{ | |
var person1 = new Person("Thomas", "Dublin", 23); | |
var person2 = new Person("John", "Sligo", 22); |
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
package main | |
import "fmt" | |
type Person struct { | |
name string | |
} | |
func (p Person) GetName() string { | |
return p.name |
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 N(...nodes:any[]) { | |
return nodes; | |
} | |
var tree = | |
N("root", | |
N("one", "one", | |
N("two", "two")), | |
N("one", "one", | |
N("two"))); |
I hereby claim:
- I am thethomaseffect on github.
- I am thethomaseffect (https://keybase.io/thethomaseffect) on keybase.
- I have a public key whose fingerprint is CD0B A480 AE01 6163 6044 0A80 AD95 3FCF 4876 6E39
To claim this, I am signing this object: