Skip to content

Instantly share code, notes, and snippets.

View mako34's full-sized avatar
💭
automagickally

manuelBetancurt mako34

💭
automagickally
View GitHub Profile
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
// Return the number of sections.
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return objectArray.count;
}
@mako34
mako34 / cloudSettings
Created March 5, 2021 00:11 — forked from marcelo-schroeder/History|-1001432a|entries.json
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-02-22T04:00:15.504Z","extensionVersion":"v3.4.3"}
@mako34
mako34 / function.js
Created May 5, 2023 08:33 — forked from bcnzer/function.js
Example of how to perform a get, add and update using Cloud Firestore in a Function
// Make sure to use firebase-admin and to initialize the app
const admin = require('firebase-admin')
admin.initializeApp(functions.config().firebase)
// Example of how I'm GETTING all the records in a collection AND using
// the ID from the path of the document that triggered this function
exports.getLessonsAsync = functions.firestore
.document('organizations/{organizationId}/lessons/{lessonId}')
.onWrite(async function(change, context) {
const result = await admin