Skip to content

Instantly share code, notes, and snippets.

Avatar
⚠️
“Profanity is the one language all programmers know best.” ― Anonymous

binarygalwalkin

⚠️
“Profanity is the one language all programmers know best.” ― Anonymous
View GitHub Profile
@Coding-Enthusiast
Coding-Enthusiast / BitwiseOperations.md
Last active Aug 29, 2022
Bitwise operations cheat sheet
View BitwiseOperations.md

AND (&)

100  
101  
---  
100  

OR (|)

100  
101  
---  

101

View lsystem.py
import sys, os
import turtle as tt
screen = tt.Screen()
class Lsystem:
"Class to compile and draw lsystem with turtle"
def __init__(self, save_every_frame=False,
speed=0):
self.name = ''
@lancevo
lancevo / nginxproxy.md
Created Jan 15, 2019 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?
View nginxproxy.md

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@jgravois
jgravois / aphorisms.md
Last active Apr 10, 2019
Questionable career advice
View aphorisms.md
@ibreakthecloud
ibreakthecloud / github-OAuth.php
Last active Dec 16, 2019
Complete PHP 7 code for Implementing OAuth via Github
View github-OAuth.php
<?php
session_start();
$code = $_GET['code'];
$url = 'https://github.com/login/oauth/access_token';
$client_id = 'xxxxxxxxxxxxxxxxxxxxxxx';
$client_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
// echo $code;
$postdata = http_build_query(
@otuncelli
otuncelli / MessageBoxEx.cs
Last active Jan 24, 2022
Parent centered MessageBox dialog in C#
View MessageBoxEx.cs
using System.Drawing;
using System.Runtime.InteropServices;
using System.Security;
using System.Threading.Tasks;
namespace System.Windows.Forms
{
using Point = Drawing.Point;
/// <summary>
View UnityCodingCheatSheet.txt
// Unity C# Cheat Sheet
// I made these examples for students with prior exerience working with C# and Unity.
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting
@lukas-h
lukas-h / license-badges.md
Last active Sep 25, 2022
Markdown License Badges for your Project
View license-badges.md

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@jgravois
jgravois / _webserver.md
Last active Sep 11, 2022
a simple guide for getting a local web server set up
View _webserver.md

Do I have a web server running?


having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (.html, .js etc.) in a browser via http://.

if you're not sure whether or not you have a web server running, no problem! its easy to confirm.

what happens when you visit http://localhost/?

@xero
xero / irc.md
Last active Sep 22, 2022
irc cheat sheet
View irc.md

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.