Skip to content

Instantly share code, notes, and snippets.

View bolaurent's full-sized avatar

Bo Laurent bolaurent

View GitHub Profile
@bolaurent
bolaurent / japanese-grammar-terms.md
Last active June 15, 2026 14:18
Japanese Grammar Terms

文法用語 Japanese Grammar Terms

品詞 Parts of Speech

Japanese Rōmaji English Notes
名詞 meishi Noun
代名詞 daimeishi Pronoun I, you, he, she, they
動詞 dōshi Verb
形容詞 keiyōshi Adjective (i-adj) Ends in い; conjugates
@bolaurent
bolaurent / migrate-google-docs.py
Last active December 20, 2019 22:08
Migrate Salesforce.com GoogleDocs to Salesforce Files Connect ContentVersion records
#!/usr/local/bin/python3
# Enable 'Create Audit Fields' [https://help.salesforce.com/articleView?id=000334139&type=1&mode=1]
# Create a custom field Original_Record_Id__c on ContentVersion (you must be in Lightning to do this)
# Find the ID of your ExternalDataSource for Google Drive and update EXTERNAL_SOURCE_ID
# Execute this query and save result to GoogleDocs.csv.
# SELECT
# Id,Name,Url,OwnerId,ParentId,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate
@bolaurent
bolaurent / DeveloperConsoleFix.page
Last active April 4, 2018 22:39
Salesforce Developer Console menus not working fix
<apex:page docType="html-5.0" id="thepage">
<script src="//cdnjs.cloudflare.com/ajax/libs/jsforce/1.7.0/jsforce.min.js"></script>
<apex:form id="theform">
<apex:pageblock id="thepageblock">
<apex:pageblockButtons location="top" id="buttons">
<apex:commandButton value="Delete my IDEWorkpace"
onclick="deleteIDEWorkspace()"
disabled="True"
id="deletebutton"
@bolaurent
bolaurent / auraIfAdvanced.auradoc
Created November 28, 2017 09:11
auraIfAdvanced (salesforce lightning component)
<aura:documentation>
<aura:description>Documentation</aura:description>
<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
<!--
<c:auraIfAdvanced list="["a","b","c"]" element="b">
WhateverU_NeedHere
</c:auraIfAdvanced>
-->
@bolaurent
bolaurent / SearchSalesforceReports
Created November 17, 2016 06:22
Examine each Salesforce report definition, and generate a csv file of those with relevant filters
#!/usr/local/bin/python3
# https://developer.salesforce.com/docs/atlas.en-us.api_analytics.meta/api_analytics/sforce_analytics_rest_api_getbasic_reportmetadata.htm
import pdb
import json
from collections import OrderedDict
import config
from progressbar import ProgressBar