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
class test { | |
public static void main(String[] args){ | |
String poop = "💩"; | |
System.out.println(poop.length()); | |
} | |
} |
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
#!/usr/bin/env python3 | |
# coding: utf8 | |
# emojiencoder.py3 by MiffTheFox <https://miffthefox.info/> | |
""" | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> |
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
bool IsUtf8Maybe(byte data){ | |
byte bit7 = 1 << 7; | |
byte bit6 = 1 << 6; | |
int length = 0; | |
foreach (byte b in data){ | |
if ((b & bit7) == 0){ | |
if (length > 0){ | |
return false; | |
} |
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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace DagaDex | |
{ | |
public static class DagaLatin | |
{ |
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
$settingsFile = Get-Item "C:\Steam\config\loginusers.vdf" | |
$steamExe = "C:\Steam\Steam.exe" | |
If (Test-Connection www.google.com -Count 1 -Quiet){ | |
Write-Host "Online" | |
$settingsFile.Attributes="Archive" | |
Get-Content $settingsFile | ` | |
%{$_ -replace "`"WantsOfflineMode`"`t`t`"1`"", "`"WantsOfflineMode`"`t`t`"0`""} | ` | |
%{$_ -replace "`"SkipOfflineModeWarning`"`t`t`"1`"", "`"SkipOfflineModeWarning`"`t`t`"0`""} | ` | |
Set-Content $settingsFile |
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
document.onpaste = function (e) { | |
var items = (event.clipboardData || event.originalEvent.clipboardData); | |
if (items && items.files && items.files.length >= 0) { | |
fileSelector.files = items.files; | |
} | |
}; |
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
#include <iostream> | |
using namespace std; | |
int main () | |
{ | |
int D; | |
for (int i = 1; i <= 100; i++) | |
{ | |
D = (i % 15) + 8; | |
if (8==D) |
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
/* | |
Copyright 2018 MiffTheFox | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to use, | |
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the | |
Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
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
@ECHO OFF | |
:: Copyright © 2018 MiffTheFox | |
:: This work is free. You can redistribute it and/or modify it under the | |
:: terms of the Do What The Fuck You Want To Public License, Version 2, | |
:: as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. | |
SET PS="%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe" | |
IF EXIST %PS% ( | |
:: TODO: Pass arguments to the PowerShell script somehow. | |
%PS% -Command "$d = (gc '%~dpf0' -Raw); iex $d.Substring($d.IndexOf(' :' + ':') + 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/sh | |
REMOTE=`git config --get remote.origin.url` | |
REPO=`pwd` | |
cd ~ | |
rm -rf "$REPO" | |
mkdir "$REPO" | |
cd "$REPO" | |
git clone $REMOTE . |
OlderNewer