Skip to content

Instantly share code, notes, and snippets.

/*!
* @license Copyright (c) 2003-2022, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
!function(t){const e=t.pl=t.pl||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 z %1",Aquamarine:"Akwamaryna",Black:"Czarny",Blue:"Niebieski",Cancel:"Anuluj","Dim grey":"Ciemnoszary","Dropdown toolbar":"Rozwijany pasek narzędzi","Edit block":"Edytuj blok","Editor toolbar":"Pasek narzędzi edytora",Green:"Zielony",Grey:"Szary","HTML object":"Obiekt HTML","Insert paragraph after block":"Wstaw akapit po bloku","Insert paragraph before block":"Wstaw akapit przed blokiem","Light blue":"Jasnoniebieski","Light green":"Jasnozielony","Light grey":"Jasnoszary",Next:"Następny",Orange:"Pomarańczowy",Previous:"Poprzedni",Purple:"Purpurowy",Red:"Czerwony",Redo:"Ponów","Rich Text Editor":"Edytor tekstu sformatowanego","Rich Text Editor, %0":"Edytor tekstu sformatowanego, %0",Save:"Zapisz","Select all":"Zaznacz wszystko","Show more items":"Pokaż więcej",Turquoise:"Turkusowy",Undo:"Co
@rogatty
rogatty / journey_cloud_json_to_evernote_enex.py
Last active June 11, 2023 12:59
Convert Journey.Cloud (Diary) JSON Export to Evernote Export (ENEX) which can be imported into Joplin
#!/usr/bin/env python3
# Converts the JSON export of Journey.Cloud diary entries into an Evernote Note Export format (ENEX) for easy import into Joplin.
# Create/update date, journal text, location, photos and tags are preserved in the resulting Evernote Note.
# Based on https://gist.github.com/mbafford/2c18f5c4d7b0dab673fddb1af2126680
import sys
import os
import json
import base64

Keybase proof

I hereby claim:

  • I am rogatty on github.
  • I am igor_rogatty (https://keybase.io/igor_rogatty) on keybase.
  • I have a public key ASDEmsZ61ZuHQmOKRvsg4O7daHFplKoTip5KIt0JprpoyQo

To claim this, I am signing this object:

@rogatty
rogatty / router.js
Last active January 18, 2018 14:49
Error state URL update
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route('article', {path: '/article/:name'});
@rogatty
rogatty / controllers.application.js
Created December 19, 2017 15:57
Ember.A().slice() with Array prototype extended
import Ember from 'ember';
export default Ember.Controller.extend({
type: Ember.computed(function () {
// it's function
return typeof(Ember.A().slice().setEach);
})
});
@rogatty
rogatty / controllers.application.js
Last active December 19, 2017 16:12
Ember.A().slice() without Array prototype extended
import Ember from 'ember';
export default Ember.Controller.extend({
afterSlice: Ember.computed(function () {
return typeof(Ember.A().slice().setEach);
}),
afterFilterBy: Ember.computed(function () {
return typeof(Ember.A().filterBy(() => true).setEach);
}),
import Ember from 'ember';
export default Ember.Controller.extend({
lastPost: 0,
init() {
this.data = {
entities: []
};
},