Skip to content

Instantly share code, notes, and snippets.

yes the whole earth

Alberto Ramos Shujito

yes the whole earth
Block or report user

Report or block Shujito

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AldoMX / PersonaFisica.js
Last active Oct 20, 2016
Implementación en JavaScript del algoritmo para generar el RFC para personas físicas (IFAI 0610100135506)
View PersonaFisica.js
* PersonaFisica.js
* Implementación en JavaScript del algoritmo para generar el RFC para personas
* físicas (IFAI 0610100135506)
* Copyright 2015 Aldo Fregoso.
* El uso de este archivo está permitido bajo los términos de la licencia de
* código abierto "GNU Affero General Public License" (AGPL) disponible en:
MichaelBeeu /
Created Sep 12, 2013
Simple class to add endian support to DataInputStream.
package github.MichaelBeeu.util;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
package com.meetup.adapter;
import android.database.Cursor;
import android.os.Bundle;
public class CursorPagerAdapter<F extends Fragment> extends FragmentStatePagerAdapter {
private final Class<F> fragmentClass;
zeuxisoo / gist:1008973
Created Jun 5, 2011
[Android] Create and Remove Desktop Shortcut
View gist:1008973


private void addShortcut(){  
	Intent shortcut = new Intent("");
	// Shortcut name
	shortcut.putExtra(Intent.EXTRA_SHORTCUT_NAME, getString(R.string.app_name));  
	shortcut.putExtra("duplicate", false);	// Just create once
rjeschke /
Created Sep 11, 2011
Low latency javax.sound.sampled API
package streaming;
import java.util.concurrent.Semaphore;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.Line;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.Mixer;
lukeredpath / ExampleClass.m
Created Jun 30, 2011
Macro for creating your "shared instance" using GCD
View ExampleClass.m
@implementation MySharedThing
+ (id)sharedInstance
return [[self alloc] init];
View Android Check if Service is Running
private boolean isServiceRunning() {
ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)){
if("com.example.MyNeatoIntentService".equals(service.service.getClassName())) {
return true;
return false;
TheZoc / mp3-to-m4r.bat
Created Jun 25, 2015
Convert a MP3 file to an Apple iPhone's ringtone file (M4R), using FFMPEG.
View mp3-to-m4r.bat
@echo off
rem =====================================================
rem Converts a MP3 file to a M4R file using ffmpeg.
rem Usage: Drop a MP3 file at the top of this batch file.
rem =====================================================
set ffmpeg_exe="C:\ffmpeg\ffmpeg-20150619-git-bb3703a-win64-static\bin\ffmpeg.exe"
rem %~f1 = Full File Path, with drive letter
rem %~p1 = Drive Letter
rem %~p1 = Path Only
gabrielbauman /
Last active Jul 30, 2019
A Java enum representing credit card types (Visa, Mastercard etc) that can detect card type from a credit card number.
package com.gabrielbauman.gist;
import java.util.regex.Pattern;
public enum CardType {
jaredrummler /
Last active Aug 26, 2019
Helper class to set the color and transparency for menu icons in an ActionBar or Toolbar.
* Copyright (C) 2015. Jared Rummler <>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
You can’t perform that action at this time.