Skip to content

Instantly share code, notes, and snippets.

View chashmeetsingh's full-sized avatar
👨‍💻
/* No Comment */

Chashmeet Singh chashmeetsingh

👨‍💻
/* No Comment */
View GitHub Profile
{"blame":[],"app_name":"LinkedIn","timestamp":"2018-05-11 22:16:53.63 +0530","app_version":"2018.05.07","slice_uuid":"1e8da7df-da8e-3312-8b04-f75b81a2a7c5","adam_id":288429040,"build_version":"9.11.6153.3","bundleID":"com.linkedin.LinkedIn","share_with_app_devs":true,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 11.1.2 (15B202)","incident_id":"F0AF9A97-8851-4B31-BB3B-36E54BFCA25E","name":"LinkedIn","symbolicated":true}
Incident Identifier: F0AF9A97-8851-4B31-BB3B-36E54BFCA25E
CrashReporter Key: 9522b7619d0295c7962228c6dfd49ef220f6c335
Hardware Model: iPhone9,4
Process: LinkedIn [12714]
Path: /private/var/containers/Bundle/Application/E8A76A39-15A8-442E-98A0-D911FE6FF41E/LinkedIn.app/LinkedIn
Identifier: com.linkedin.LinkedIn
Version: 9.11.6153.3 (2018.05.07)
Code Type: ARM-64 (Native)
Role: Non UI
{"blame":[],"app_name":"fileproviderd","timestamp":"2018-07-20 02:36:15.79 +0530","app_version":"","slice_uuid":"2b353226-8e62-3b85-8617-a3462b7f0ef3","build_version":"","share_with_app_devs":false,"is_first_party":true,"bug_type":"109","os_version":"iPhone OS 11.3.1 (15E302)","incident_id":"1F4DDE78-5363-48F5-926C-0891B8598014","name":"fileproviderd","symbolicated":true}
Incident Identifier: 1F4DDE78-5363-48F5-926C-0891B8598014
CrashReporter Key: eda14facb028747727db302d4e2ef6f361ba4dcf
Hardware Model: iPhone9,4
Process: fileproviderd [5597]
Path: /System/Library/Frameworks/FileProvider.framework/Support/fileproviderd
Identifier: fileproviderd
Version: ???
Code Type: ARM-64 (Native)
Role: Unspecified
{"blame":[],"app_name":"SpringBoard","timestamp":"2018-07-20 04:33:07.54 +0530","app_version":"1.0","slice_uuid":"5367e82f-63f9-3654-8461-eeb011d7a082","adam_id":0,"build_version":"50","bundleID":"com.apple.springboard","share_with_app_devs":false,"is_first_party":true,"bug_type":"109","os_version":"iPhone OS 11.3.1 (15E302)","incident_id":"9FD1F848-60CE-4A84-BB11-F7CC5028A4AC","name":"SpringBoard","symbolicated":true}
Incident Identifier: 9FD1F848-60CE-4A84-BB11-F7CC5028A4AC
CrashReporter Key: eda14facb028747727db302d4e2ef6f361ba4dcf
Hardware Model: iPhone9,4
Process: SpringBoard [10268]
Path: /System/Library/CoreServices/SpringBoard.app/SpringBoard
Identifier: com.apple.springboard
Version: 50 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
q{"blame":["\/Library\/MobileSubstrate\/DynamicLibraries\/AnemoneUIKit.dylib","\/Library\/Application Support\/IconSupport\/Versions\/4.0\/libIconSupport.dylib","\/Library\/MobileSubstrate\/DynamicLibraries\/AnemoneCore.dylib"],"app_name":"SpringBoard","timestamp":"2018-07-19 15:59:12.77 +0530","app_version":"1.0","slice_uuid":"5367e82f-63f9-3654-8461-eeb011d7a082","adam_id":0,"build_version":"50","bundleID":"com.apple.springboard","share_with_app_devs":false,"is_first_party":true,"bug_type":"109","os_version":"iPhone OS 11.3.1 (15E302)","incident_id":"197498A2-4A95-49E2-B551-0325BDE41A7B","name":"SpringBoard","symbolicated":true}
Incident Identifier: 197498A2-4A95-49E2-B551-0325BDE41A7B
CrashReporter Key: e6b2db24fff20d5ea16ed68842e4252396b76b65
Hardware Model: iPhone9,4
Process: SpringBoard [2194]
Path: /System/Library/CoreServices/SpringBoard.app/SpringBoard
Identifier: com.apple.springboard
Version: 50 (1.0)
Code Type: ARM-64 (Native)
Role:
@chashmeetsingh
chashmeetsingh / timeago.swift
Created August 2, 2016 01:08
"Time ago" function for Swift (based on MatthewYork's DateTools for Objective-C) *Swift 3
func timeAgoSinceDate(date:NSDate, numericDates:Bool) -> String {
let calendar = Calendar.current
let now = NSDate()
let earliest = now.earlierDate(date as Date)
let latest = (earliest == now) ? date : now
let components:NSDateComponents = calendar.components([Calendar.Unit.minute , Calendar.Unit.hour , Calendar.Unit.day , Calendar.Unit.weekOfYear , Calendar.Unit.month , Calendar.Unit.year , Calendar.Unit.second], from: earliest, to: latest as Date, options: Calendar.Options())
if (components.year >= 2) {
return "\(components.year) years ago"
} else if (components.year >= 1){
import React, {Component} from 'react';
import {KeyboardAvoidingView, StyleSheet} from 'react-native';
import {Button, Input} from 'react-native-elements';
import * as firebase from 'firebase';
import ValidatorTextField from './ValidatorTextField'
import validate from './Validator'
export default class CompleteDetails extends Component {
static navigationOptions = {
import Foundation
let a = [1,2,3,4,5,0]
extension Array where Element: Comparable {
func isSorted() -> Bool {
print(self.sorted() == self)
return true
#!/usr/bin/env ruby
require 'english'
require 'rubocop'
ADDED_OR_MODIFIED = /A|AM|^M/.freeze
changed_files = `git status --porcelain`.split(/\n/).
select { |file_name_with_status|
file_name_with_status =~ ADDED_OR_MODIFIED