Skip to content

Instantly share code, notes, and snippets.

View parthjdabhi's full-sized avatar
🎯
Focusing

Parth Dabhi parthjdabhi

🎯
Focusing
View GitHub Profile
@robinvanemden
robinvanemden / BabyService.java
Created July 2, 2015 17:02
Audio Detector and Recorder
package com.hollandhaptics.babyapp;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.text.SimpleDateFormat;
@WeZZard
WeZZard / UIView+HitTestLiveTracing.h
Last active November 24, 2016 18:12
Lively trace UIView's hit testing
//
// UIView+LiveHitTestTracing.h
// UIViewLiveHitTestTracing
//
// Created by Manfred on 10/28/15.
//
//
@import UIKit;
@alancnet
alancnet / How to Docker Swarm.md
Last active September 29, 2020 12:00
How to Docker Swarm

Temporary environment variables

# IP Address of master machine
masterip=192.168.0.101

# IP Address of node machine
nodeip=192.168.0.14

On the master

Run ETCD

@pwlin
pwlin / gist:8a0d01e6428b7a96e2eb
Last active April 13, 2025 02:09
Android : add cert to system store
https://code.google.com/p/android/issues/detail?id=32696#c5
If you have a certificate that is not
trusted by Android, when you add it, it goes in the personal cert store.
When you add a cert in this personal cert store, the system requires a
higher security level to unlock the device. But if you manage to add your
cert to the system store then you don't have this requirement. Obviously,
root is required to add a certificate to the system store, but it is quiet
easy.
@albertogiunta
albertogiunta / Extensions.kt
Created March 20, 2018 10:30
Extension functions (Kotlin) & build.gradle files for Android projects
/**
* ANY
*/
fun Any.toJson(): String = GsonInitializer.toJson(this)
/**
* VIEW
*/
fun View.toggleVisibility(setAsVisible: Boolean) = if (setAsVisible) this.visible() else this.gone()
@ernestkamara
ernestkamara / AdbCommands
Created June 26, 2018 08:42 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@AdrianBinDC
AdrianBinDC / MapRegionUtility.swift
Last active May 19, 2023 01:13
Generate a MKCoordinateRegions for continents and major oceans
//
// MapRegionUtility.swift
// QuakeData
//
// Created by Adrian Bolinger on 7/9/18.
// Copyright © 2018 Adrian Bolinger.
//
/*
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@pschmidtboeing
pschmidtboeing / iOS_watchOS_device_types.txt
Last active February 3, 2021 13:05 — forked from adamawolf/Apple_mobile_device_types.txt
List of iOS and Watch OS device codes types a.k.a. machine ids (e.g. iPhone1,1) and their matching product names
i386 : iOS Simulator 32-bit
x86_64 : iOS Simulator 64-bit
iPhone1,1 : iPhone 1st Gen
iPhone1,2 : iPhone 3G 2nd Gen
iPhone2,1 : iPhone 3GS 3rd Gen
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 (GSM) Rev A
iPhone3,3 : iPhone 4 (CDMA)
iPhone4,1 : iPhone 4s
@Mike-Gough
Mike-Gough / README.md
Last active June 12, 2024 23:48
Setup new React Native project with Typescript and Storyboard

React Native App Creation Recipe

This is a step-by-step guide to create React Native app.

You will get an application which has;

  • TypeScript
  • Linting
  • Formatting
  • Testing