Skip to content

Instantly share code, notes, and snippets.

View esetnik's full-sized avatar

Ethan Setnik esetnik

View GitHub Profile
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@esetnik
esetnik / backbuttontitle.m
Created September 18, 2012 19:26
Custom Back Button Title
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
self.navigationItem.title = @\"My Long Title\";
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Set my own title to \"Back\" forcing
// the back button to change its text
self.navigationItem.title = @\"Back\";
}
@esetnik
esetnik / insertBefore
Created June 11, 2011 17:48
Date String
var d = new Date();
var date_string = "date "+d.getMonth() + "/";
date_string = date_string + d.getDay() + "/";
date_string = date_string + d.getFullYear() +" ";
date_string = date_string + d.getHours() + ":";
date_string = date_string + d.getMinutes() + ":";
date_string = date_string + d.getSeconds();