Skip to content

Instantly share code, notes, and snippets.

View PigLatin.java
// Bonfire: Pig Latin
// Author: @altaf933
// Challenge: http://www.freecodecamp.com/challenges/bonfire-pig-latin
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function translate(str) {
var indeText = getIndexVowel(str);
var pigLatin='';
if(indeText==0){
pigLatin = str+"way";
View bonfire-roman-numeral-converter.js
// Bonfire: Roman Numeral Converter
// Author: @altaf933
// Challenge: http://www.freecodecamp.com/challenges/bonfire-roman-numeral-converter
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function convert(num) {
var numBer = new Array();
var strNumeral=num.toString();
View KeyboardUtilsAndroid
package com.utils.android.util;
import android.app.Activity;
import android.content.Context;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
View ToastUtils
package com.utils.android.util;
import java.util.Timer;
import android.app.Activity;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.widget.Toast;