⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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 fetchContactAddress() { | |
const contacts = getAllContacts(); | |
console.log(`Expected: ${contacts.totalItems} \t Actual: ${contacts.connections.length}`) | |
// Example Entry | |
//console.log(contacts.connections.find(contact => contact.addresses)) | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
var range = sheet.getRange("C2:C"); // Column with the contact name | |
var values = range.getValues(); |
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
blueprint: | |
name: Frigate Notification (0.10.0) | |
description: | | |
## Frigate Mobile App Notification | |
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but include an actionable notification allowing you to view the clip and snapshot. | |
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1]. | |
### Software Version Requirements |
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
"scripts": { | |
"build": "npm run build-js", | |
"build-go": "go build", | |
"build-js": "npm run webpack", | |
"serve": "npm run serve-go", | |
"serve-go": "./my-binary", | |
"watch": "npm run watch-js", | |
"watch-go": "watch 'go test ./... && npm run build-go && npm run serve-go' `npm run utils-list-dirs-go -s` --wait 3 --ignoreDotFiles", |
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
### Keybase proof | |
I hereby claim: | |
* I am kusold on github. | |
* I am mike (https://keybase.io/mike) on keybase. | |
* I have the public key with fingerprint ACD0 4A19 3DA4 2890 3E2A 2E76 E56B F5EF 5E57 FEBF | |
To claim this, I am signing this object: |
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
string = "foobarfoofoobarbar" | |
list_of_dupes = [] | |
for(int i = string.length; i > 1; i--) | |
{ | |
slice_size = string.length / i; | |
temp_string = string | |
slice_to_check_for_uniqueness = temp_string.slice(FROM 0, TO slice_size); #I'm assuming slice consumes. | |
while(temp_string.contains(slice_to_check_for_uniqueness) != null) | |
{ |
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
def seniorcrawl | |
if isGraduating? | |
drink = 0 | |
while(!passedOut) | |
drink++ | |
end | |
takeMeHome | |
end | |
end |
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/sh | |
## | |
## Switches grails versions by changing the the symlink ~/grails to a | |
## ~/grails-$VERSION | |
## | |
## Author: Dan Lynn ([email protected]) | |
## Modified: Mike Kusold ([email protected]) | |
if [ -z "$1" ]; then |
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 time | |
def worthlessCalculator(n): | |
if n <= 3: | |
return 5 | |
output = (3 * worthlessCalculator(n-1) + 5 * worthlessCalculator(n-3) + 7 * worthlessCalculator(n-4) + 11) % 15490549 | |
return output | |
input = -1 |
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
var isOdd = function (n) { | |
if (n % 2 === 0) { | |
return false; | |
} else { | |
return true; | |
} | |
}; | |
var isEven = function (n) { | |
if (n % 2 === 0) { |
NewerOlder