Skip to content

Instantly share code, notes, and snippets.

View abd3lraouf's full-sized avatar
🏠
Working from home

Abdelraouf Sabri abd3lraouf

🏠
Working from home
View GitHub Profile
@abd3lraouf
abd3lraouf / 0_reuse_code.js
Created December 18, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/**
* This method displays the given price on the screen.
*/
private void displayPrice(int number) {
TextView priceTextView = (TextView) findViewById(R.id.price_text_view);
priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));
}