Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Umair M umaqs

🎯
Focusing
  • London
View GitHub Profile
@umaqs
umaqs / FilterWords.cs
Created Jun 3, 2019
A small program to filter words
View FilterWords.cs
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace FilterWords
{
class Program
{
@umaqs
umaqs / bithack.cc
Created May 27, 2019 — forked from stephenLee/bithack.cc
bit manipulation tricks(collections)
View bithack.cc
/*
* Reference:
* http://www.quora.com/Computer-Programming/What-are-some-cool-bit-manipulation-tricks-hacks
* http://www.catonmat.net/blog/low-level-bit-hacks-you-absolutely-must-know/
*/
#include <iostream>
#include <string.h>
using namespace std;
@umaqs
umaqs / MinMaxAttribute.cs
Created Dec 4, 2017 — forked from LotteMakesStuff/MinMaxAttribute.cs
MinMax property drawer for Unity - Add a [MinMax] attribute to a property to draw a useful min/max setting slider.
View MinMaxAttribute.cs
// NOTE DONT put in an editor folder
using UnityEngine;
public class MinMaxAttribute : PropertyAttribute
{
public float MinLimit = 0;
public float MaxLimit = 1;
public bool ShowEditRange;
public bool ShowDebugValues;
You can’t perform that action at this time.