Skip to content

Instantly share code, notes, and snippets.

View biodunalfet's full-sized avatar

Hamza Fetuga biodunalfet

View GitHub Profile
@biodunalfet
biodunalfet / CardFragment.java
Created December 11, 2016 08:17
See the shareButton part. Line 135.
package com.example.sep.loveartlearnart;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
@biodunalfet
biodunalfet / gist:762c732d408d2773665308081a21ec05
Created December 22, 2016 23:57 — forked from clintel/gist:1155906
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
import java.io.File;
import java.util.Scanner;
import java.util.ArrayList;
public class quest1 {
public static void main(String[] args){
ArrayList<String> words = new ArrayList<>();
try {
System.out.print("Enter the file name with extension e.g. file.txt: ");
import java.util.Scanner;
import java.io.*;
public class quest7 {
public static void main(String[] args){
print("Enter path to existing source file e.g myfolder/file1.txt : ");
Scanner input = new Scanner(System.in);
import java.util.Scanner;
import java.io.*;
import java.lang.Math;
public class quest3 {
static double Vm;
static double F;
static int N = 1000;
{
"dfsdfs" : {
"ingredients" : [ {
"name" : "olive oil",
"quantity" : "5",
"unit" : "teaspoons"
}, {
"explanation" : "cut into thin strips",
"name" : "large onion",
"quantity" : "1"
var functions = require('firebase-functions');
var admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
exports.sendNotificationOnEventComment
= functions.database.ref('/eventComments/{eventUid}/{eventCommentUid}').onWrite(event => {
if (event.data.exists()) {
var eventUid = event.params.eventUid;
// REQUEST BODY IN API EXPLORER
{
"accountId": "526400647",
"containerId": "2678459",
"name": "trigger1",
"type": "customEvent",
"triggerId": "3",
"eventName": {
"key": "eventName",
tagmanager.accounts.containers.triggers.create(
{
accountId : accountId,
containerId : containerId,
name : "First Trigger",
type : "customEvent",
eventName: {
type: "template",
value: "firstTrigger"
}
@biodunalfet
biodunalfet / Fastfile
Created June 21, 2018 03:57 — forked from polbins/Fastfile
Fastlane script for Uploading to Slack and Play Store Alpha
default_platform :android
platform :android do
before_all do
ENV["SLACK_URL"] = "https://hooks.slack.com/services/ABC/123/XYZ"
end
######################### PUBLIC LANES #########################
desc "Deploy a new Prod APK version to Play Store Alpha"