Skip to content

Instantly share code, notes, and snippets.

View sebastianbachmann's full-sized avatar
💤

Sebastian Bachmann sebastianbachmann

💤
View GitHub Profile
@sebastianbachmann
sebastianbachmann / getMostRecent.js
Created December 16, 2021 15:29 — forked from beevelop/getMostRecent.js
Get the most recently changed file in NodeJS
var path = require('path');
var fs = require('fs');
var getMostRecent = function (dir, cb) {
var dir = path.resolve(dir);
var files = fs.readdir(dir, function (err, files) {
var sorted = files.map(function(v) {
var filepath = path.resolve(dir, v);
return {
name:v,
@sebastianbachmann
sebastianbachmann / SwiftTable
Created September 10, 2018 20:14 — forked from jquave/SwiftTable
Example code for Table View in Swift
import UIKit
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {