Skip to content

Instantly share code, notes, and snippets.

View thomaskanzig's full-sized avatar
😎
Knowledge is responsibility

Thomas Känzig thomaskanzig

😎
Knowledge is responsibility
View GitHub Profile

How To - Upload and add Images to markdown files in Gist

Markdown files allow embedding images in it. However it requires the image to be hosted at some location and we can add the url of the image to embed it.

Example: ![Alternate image text](https://someurl/imagelocation/image.png)

We can use services like imgur or other services to host the images and use the hosted URL.

app.controller('ModalCtrl', function ($scope, $http, ngDialog, Schedule,$controller) {
$scope.open = function (resourceObj,date) {
$scope.employee = resourceObj.title;
$scope.date = new Date(date);
$scope.time = new Date(date);
ngDialog.open({
template: '/assets/angular/views/modal',
controller: 'ScheduleCtrl',
@udacityandroid
udacityandroid / Code to go into NumberFragment.java
Created May 14, 2016 00:34
Copy code from the NumbersActivity and paste it into the NumbersFragment
/** Handles playback of all the sound files */
private MediaPlayer mMediaPlayer;
/** Handles audio focus when playing a sound file */
private AudioManager mAudioManager;
/**
* This listener gets triggered whenever the audio focus changes
* (i.e., we gain or lose audio focus because of another app or device).
*/
@rxaviers
rxaviers / gist:7360908
Last active September 24, 2024 02:38
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: