This file contains 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
fetch(ajax_url, { | |
method: 'POST', | |
credentials: 'same-origin', | |
headers: new Headers({'Content-Type': 'application/x-www-form-urlencoded'}), | |
body: 'action=zget_profile_user' | |
}) | |
.then((resp) => resp.json()) | |
.then(function(data) { | |
if(data.status == "success"){ | |
_this.setState({loaded:true,user:data.user}); |
This file contains 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
import React from 'react'; | |
class Accordion extends React.Component { | |
render() { | |
return ( | |
<ul className="accordion" data-accordion>{this.props.children}</ul> | |
); | |
} | |
} | |
export default Accordion; |
This file contains 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
function doGet(e) { | |
var book = SpreadsheetApp.getActiveSpreadsheet(); | |
var masterSheet = book.getSheetByName("New_072018"); | |
// var json = convertSheet2Json(masterSheet); | |
var colStartIndex = 1; | |
var rowNum = 1; | |
var firstRange = masterSheet.getRange(1, 1, 1, masterSheet.getLastColumn()); | |
var firstRowValues = firstRange.getValues(); | |
var titleColumns = firstRowValues[0]; |
This file contains 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
import bleno from 'bleno-mac'; | |
class MessageCharacteristic extends bleno.Characteristic { | |
constructor(config) { | |
const props = Object.assign(config, { | |
uuid: '13333333-3333-3333-3333-800000000001', | |
properties: ['read', 'write', 'notify'], | |
value: null, | |
}); | |
super(props); |
This file contains 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
#!/bin/bash | |
#requires https://github.com/jya-dev/supernote-tool | |
superNotePath="/Users/chriswhittle/Dropbox/Supernote" #must be absolute if you are going to use cron | |
superNoteToolPath="/opt/homebrew/bin/supernote-tool" #must be absolute if you are going to use cron | |
superNoteNewExt="pdf" | |
find "${superNotePath}" -name "*.note" -print0 | while read -d $'\0' noteFile | |
do | |
convertedFile="${noteFile/Supernote/Supernote_Converted}" | |
convertedFile="${convertedFile%.*}.${superNoteNewExt}" | |
if [[ ! -f $convertedFile ]] || [[ $noteFile -nt $convertedFile ]] #make sure the converted file doesn't exist or the note is newer than last converted |
This file contains 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
#!/bin/bash | |
superNotePath="/Users/chriswhittle/Dropbox/Supernote/Note" | |
superNoteToolPath="/opt/homebrew/bin/supernote-tool" | |
noteTakingAppPath="/Users/chriswhittle/Library/Mobile Documents/iCloud~md~obsidian/Documents/WhitsNotes" | |
pdfPath="/Users/chriswhittle/Library/Mobile Documents/iCloud~md~obsidian/Documents/WhitsNotes/SuperNote/pdf" | |
imagePath="/Users/chriswhittle/Library/Mobile Documents/iCloud~md~obsidian/Documents/WhitsNotes/SuperNote/images" | |
if [[ -d $pdfPath ]] | |
then | |
echo "Deleting Old Pdfs" |
This file contains 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
# Define the paths to the Supernote, Supernote Tool, and Obsidian directories | |
$dropBoxPath = "/Users/chris/Dropbox" | |
$obsidianVaultPath = "/Users/chris/Obsidian/WhitsNotesV6" | |
$superNotePath = "${dropBoxPath}/Supernote/Note" | |
$noteTakingAppPath = "${obsidianVaultPath}/_Inbox/" | |
$pdfPath = "${obsidianVaultPath}/zSupporting Files/Attachments/SuperNote/" | |
$superNoteToolPath = "/Library/Frameworks/Python.framework/Versions/3.12/bin/supernote-tool" | |
$returnLine = "`r`n" | |
# Delete the existing PDF and image directories if they exist |
This file contains 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
# Define the paths to the Supernote, Supernote Tool, and Obsidian directories | |
$notesStoragePath = "/Users/chris/Dropbox" | |
$superNotePath = "${notesStoragePath}/Supernote/Note" | |
$notebooksAppStoragePath = "/Users/chris/Library/Mobile Documents/iCloud~com~aschmid~notebooks/Documents" | |
$inboxPath = "${notebooksAppStoragePath}/Inbox" | |
$pdfRelativePath = "/NBResources/Misc/SuperNoteImages" | |
$pdfPath = "${notebooksAppStoragePath}${pdfRelativePath}" | |
$superNoteToolPath = "/Library/Frameworks/Python.framework/Versions/3.12/bin/supernote-tool" | |
$returnLine = "`r`n" |
This file contains 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
# Define the paths to the Supernote, Supernote Tool, and Obsidian directories | |
$superNoteParentStoragePath = "/Users/chris/Dropbox" | |
$superNotePath = "${superNoteParentStoragePath}/Supernote/Note" | |
$superNoteToolPath = "/Library/Frameworks/Python.framework/Versions/3.12/bin/supernote-tool" | |
$superNoteToolConversionType = "png" | |
$notesApplicationStoragePath = "/Users/chris/Library/Containers/co.noteplan.NotePlan3/Data/Library/Application Support/co.noteplan.NotePlan3/Notes" | |
$notesApplicationFileExt = ".txt" | |
$notesApplicationInboxPath = "${notesApplicationStoragePath}/0 - Inbox" | |
$notesApplicationAttachmentSuffix = "_attachments" |