Skip to content

Instantly share code, notes, and snippets.

View AhmedEhabH's full-sized avatar

Ahmed Ehab AhmedEhabH

View GitHub Profile
@ssaurel
ssaurel / MainActivity.java
Created June 6, 2017 12:43
Main Activity of the Paint App Tutorial on the SSaurel's Channel
package com.ssaurel.mypaint;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.DisplayMetrics;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
public class MainActivity extends AppCompatActivity {
@ssaurel
ssaurel / FingerPath.java
Created June 6, 2017 12:11
Finger Path object for a Paint App Tutorial on the SSaurel's Channel
package com.ssaurel.mypaint;
import android.graphics.Path;
public class FingerPath {
public int color;
public boolean emboss;
public boolean blur;
public int strokeWidth;
@ramingar
ramingar / remove-git-credential-osxkeychain.md
Last active January 12, 2024 15:45
Remove git credential-osxkeychain #git #osx #credential
git config --global --edit

Eliminar dentro de la sección [credential] el helper = osxkeychain

En la terminal:

git config --local --unset credential.helper
public class AudioManager : MonoBehaviour {
// Your audio clip
public AudioClip MusicClip;
// the component that Unity uses to play your clip
public AudioSource MusicSource;
// Use this for initialization
void Start () {
@libertylocked
libertylocked / fibonacci.asm
Created February 7, 2015 05:34
Fibonacci function in MIPS
.data
prompt1: .asciiz "Enter the sequence index\n"
prompt2: .asciiz "The Fibonacci value is:\n"
.text
# Print prompt1
li $v0, 4
la $a0, prompt1
syscall
@fffaraz
fffaraz / resources.md
Last active August 15, 2024 17:57
CS 306 - Linux/UNIX Programming
import java.io.*;
/**
* Class for performing LZ77 compression/decompression using text IO
*
* @author Mark Hall
* @version 1.0
*/
public class LZ77T {
public static final int DEFAULT_BUFF_SIZE = 1024;
@jeetsukumaran
jeetsukumaran / custom_iterator.cpp
Created February 18, 2010 02:33
Sample C++/STL custom iterator
// Sample custom iterator.
// By perfectly.insane (http://www.dreamincode.net/forums/index.php?showuser=76558)
// From: http://www.dreamincode.net/forums/index.php?showtopic=58468
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <cassert>