Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am micheltem on github.
  • I am michelt (https://keybase.io/michelt) on keybase.
  • I have a public key ASDi4vCPEEtUZ-3GH_pn2kktyR3HX9hV5sNFsH5u4jyAwAo

To claim this, I am signing this object:

@micheltem
micheltem / formatDates.js
Created February 4, 2017 11:16
Formatting dates in pure js, no libs
(new Date()).toString().replace(/\S+\s(\S+)\s(\d+)\s(\d+)\s.*/,'$2 $1 $3');
// date will be formatted as "14-Oct-2015" (pass any date object in place of 'new Date()')
//Basic React and JSX linting based on recommended options
{
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
class _app.ListView extends app.MSBaseListView
el: "#body"
template: "script#projects"
views:
"#project-create": new app.Project.CreateView()
events:
"click #add-project": "createProject"
initialize: ->
@childViewClass = app.Project.View
@listEl = "#projects-list"
@micheltem
micheltem / gist:3319009
Created August 10, 2012 23:46
Error Log when building TiTouchDB from source
MacBook-Pro:~/Documents/Titanium Studio Workspace/ti_touchdb/mobile/ios$ ./build.py
[WARN] please update the LICENSE file with your license text before distributing
Build settings from command line:
SDKROOT = iphoneos5.1
=== BUILD NATIVE TARGET titouchdb OF PROJECT titouchdb WITH CONFIGURATION Release ===
Check dependencies
CompileC build/titouchdb.build/Release-iphoneos/titouchdb.build/Objects-normal/armv6/ComObscureTiTouchDBModule.o Classes/ComObscureTiTouchDBModule.m normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Users/<MyUSER>/Documents/Titanium Studio Workspace/ti_touchdb/mobile/ios"
@micheltem
micheltem / Build Error Log
Created August 10, 2012 23:06
Error Log when building TiTouchDB from source
MacBook-Pro:~/Documents/Titanium Studio Workspace/ti_touchdb/mobile/ios$ ./build.py
[WARN] please update the LICENSE file with your license text before distributing
Build settings from command line:
SDKROOT = iphoneos5.1
=== BUILD NATIVE TARGET titouchdb OF PROJECT titouchdb WITH CONFIGURATION Release ===
Check dependencies
ProcessPCH /var/folders/zq/n8p4z7811mvct091208_6_tm0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/ComObscureTiTouchDB_Prefix-heriuhlkkbamjygifqrnhfzxyavb/ComObscureTiTouchDB_Prefix.pch.pth ComObscureTiTouchDB_Prefix.pch normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Users/<MyUSER>/Documents/Titanium Studio Workspace/ti_touchdb/mobile/ios"