This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tr.com.serayuzgur.util; | |
/* | |
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* | |
* - Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Evernote" | |
set _Notebooks to every notebook | |
repeat with _NoteBook in _Notebooks | |
set _NoteBookName to name of _NoteBook | |
set _Notes to every note of _NoteBook | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const csv = require("csvtojson/v2"); | |
var fs = require("fs"); | |
const ibMap = {}; | |
const structured = {}; | |
function append(item) { | |
let province = {}; | |
let district = {}; | |
let subd = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# copy this to .zshrc or similar place. usage 'flatten x' x is the directory to traverse and flatten | |
flatten() { | |
find $1 -mindepth 2 -type f -exec mv -f {} $1 ';' | |
find $1 -mindepth 1 -type d -exec rmdir {} ';' | |
} |