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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Snake Game</title> | |
<style> | |
body { | |
display: flex; | |
justify-content: center; |
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
# /etc/apt/preferences.d/99microsoft-dotnet.pref | |
Package: * | |
Pin: origin "packages.microsoft.com" | |
Pin-Priority: 1001 |
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
ahebrank.yaml2json | |
ahmadalli.vscode-nginx-conf | |
austincummings.razor-plus | |
BartVanHoey.blazory | |
bencoleman.armview | |
bmalehorn.shell-syntax | |
buianhthang.xml2json | |
cake-build.cake-vscode | |
chris-noring.ts-snippets | |
christian-kohler.npm-intellisense |
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 | |
import argparse | |
import sys | |
from os import path | |
from textwrap import indent | |
from xml.etree import ElementTree | |
def commentify(x, prefix='# '): |
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
# Cron example for gl11314.my.to - will update on 5 minute intervals. Works for mac, linux (or any | |
# OS with a cron scheduler) | |
# If you're not familiar with the cron scheduler, you can search for "install a cron", cron is the standard scheduler available on most non-windows systems, mac's, | |
# routers, NAS boxes and so on Using IPv4 transport | |
# Test on the console using ..: | |
# curl http://sync.afraid.org/u/VRgFyLDqz4GeCXUqAmuxLLwZ/ | |
# To install into cron, on the console enter: crontab -e |
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 bash | |
__main() { | |
declare -a fonts=("Hack") | |
gh_release=$(curl -s "https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest") | |
if [[ "${fonts[0]}" = "all" ]]; then | |
# Project all font names into source array | |
echo "$gh_release" | \ |
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
# .editorconfig help: https://EditorConfig.org | |
# References | |
# http://editorconfig.org/ (Official Site) | |
# http://editorconfig.org/#download (Plugins) | |
# http://davidensinger.com/2013/07/why-i-use-editorconfig/ (Reference) | |
# https://github.com/eslint/eslint/blob/master/.editorconfig (Sample file) | |
# No .editorconfig files above the root directory | |
root = true |
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
#!/bin/bash | |
dotnetver="6.0" | |
echo -e "\e[1m----------------------------------------" | |
echo -e "\e[1m .NET $(echo "$dotnetver" | cut -c 2 || true) Installer | |
echo -e "\e[1m----------------------------------------" | |
echo -e "\e[0m" | |
echo -e "\e[1m----------------------------------------" |
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
#!/bin/sh | |
if [ ! -f /etc/os-release ]; then | |
echo "Unable to determine ditribution" >&2 | |
exit 1; | |
fi | |
. /etc/os-release | |
export NAME VERSION ID PRETTY_NAME |
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.IO; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.CodeAnalysis.CSharp; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
public static class CodeInjector { | |
static void InjectCode(string appDir) { | |
if (string.IsNullOrWhiteSpace(appDir)) |
NewerOlder