This is the sequence of steps to follow to create a root gh-pages
branch. It is based on a question at [SO]
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
using System; | |
public static class ErrorHandling | |
{ | |
public static void HandleErrorByThrowingException() => | |
throw new Exception("You need to implement this function."); | |
public static int? HandleErrorByReturningNullableType(string input) => | |
int.TryParse(input, out int result) ? result : (int?)null; |
using System; | |
using System.Collections.Generic; | |
public class QueueDeque<T> | |
{ | |
public void Enqueue(T value) | |
{ | |
throw new NotImplementedException("You need to implement this function."); | |
} |
using System; | |
using System.Diagnostics.CodeAnalysis; | |
public partial class Clock : IComparable, IComparable<Clock>, | |
IComparable<int>, IComparable<long>, IComparable<short>, | |
IComparable<decimal>, IComparable<double>, IComparable<float> | |
{ | |
public int CompareTo(object other) | |
{ | |
if (ReferenceEquals(this, other)) |
using System; | |
using System.Reflection.Emit; | |
namespace BoolConvertBug | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
Func<int, bool> func = CreateDynamicMethod(); |
' Q B a s i c G o r i l l a s | |
' | |
' Copyright (C) IBM Corporation 1991 | |
' | |
' Your mission is to hit your opponent with the exploding banana |
#!/bin/bash | |
#=============================================================================== | |
# | |
# FILE: makeNES | |
# | |
# USAGE: ./makeNES [options] [ASM [CHR [NES]]] | |
# | |
# DESCRIPTION: Bash script to compile and assemble an NES ROM using loopy's | |
# asm6 and create files appropriate for burning to chips | |
# |
<vector | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:width="48dp" | |
android:height="48dp" | |
android:viewportHeight="12" | |
android:viewportWidth="12"> | |
<!-- Rotate the canvas, then translate, then scale, then draw the pause icon. --> | |
<group android:scaleX="1.5" android:pivotX="6" android:pivotY="6"> | |
<group |
#!/bin/bash | |
# How to install: | |
# exo-open "http://developer.android.com/sdk/index.html#Other" | |
# sudo apt-get install libav-tools imagemagick | |
# wget https://gist.githubusercontent.com/lorenzos/e8a97c1992cddf9c1142/raw/android-screen-to-gif.sh | |
# chmod a+x android-screen-to-gif.sh | |
# Help message | |
function usage() { |