Skip to content

Instantly share code, notes, and snippets.

View chicio's full-sized avatar
πŸ‘Ύ
Using πŸ–₯ πŸ’», listening to 🎡, drawing ✏️, tattooed 😈

Fabrizio Duroni chicio

πŸ‘Ύ
Using πŸ–₯ πŸ’», listening to 🎡, drawing ✏️, tattooed 😈
View GitHub Profile
@badsyntax
badsyntax / cloc.sh
Created October 11, 2023 16:31
react native cloc
cloc --exclude-dir=vendor,.xcodeproj,xcuserdata,build,Pods,node_modules,.gradle,dist,yarn.lock,package-lock.json .
@cprovatas
cprovatas / Data+PrettyPrint.swift
Created May 23, 2018 15:52
Pretty print JSON string from Data in Swift 4.1 (especially useful printing to Xcode console)
import Foundation
extension Data {
var prettyPrintedJSONString: NSString? { /// NSString gives us a nice sanitized debugDescription
guard let object = try? JSONSerialization.jsonObject(with: self, options: []),
let data = try? JSONSerialization.data(withJSONObject: object, options: [.prettyPrinted]),
let prettyPrintedString = NSString(data: data, encoding: String.Encoding.utf8.rawValue) else { return nil }
return prettyPrintedString
}
# When using RN in combination with Cocoapods, a lot of
# things are broken. These are the fixes we had to append
# to our Podfile when upgrading to [email protected].
#
# WARNING: Check those line numbers when you're on a different version!
def change_lines_in_file(file_path, &change)
print "Fixing #{file_path}...\n"
contents = []
@chicio
chicio / iOS-URLSession-Request.swift
Last active May 14, 2017 22:53
iOS URLSession Sample call
if let url = URL(string: "<URL STRING>") {
//Standard request.
let request = URLRequest(url: url)
let sessionDataTask = URLSession(configuration: .default).dataTask(with: request, completionHandler: {
(data:Data?, response:URLResponse?, error:Error?) in
if error != nil {
//Manage error.
@briandk
briandk / CONTRIBUTING.md
Created March 18, 2016 20:29
A basic template for contributing guidelines that I adapted from Facebook's open source guidelines

Contributing to Transcriptase

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

We Develop with Github

@rxaviers
rxaviers / gist:7360908
Last active July 25, 2025 21:00
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: