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
// https://www.wix.com/velo/forum/community-discussion/how-to-embed-a-pdf-on-a-dynamic-page-tutorial | |
// https://www.wix.com/velo/forum/community-discussion/creating-a-viewable-pdf-in-wix | |
import wixData from 'wix-data'; | |
import wixLocation from 'wix-location'; | |
let src; | |
$w.onReady(function() { | |
$w("#dataset1").onReady(() => { | |
const item = $w('#dataset1').getCurrentItem(); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- Generated by: TmTheme-Editor --> | |
<!-- ============================================ --> | |
<!-- app: http://tmtheme-editor.herokuapp.com --> | |
<!-- code: https://github.com/aziz/tmTheme-Editor --> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai</string> |
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 | |
set -e | |
export DISPLAY=:0.0 | |
# add to /etc/xdg/lxsession/LXDE-pi/autostart | |
# unclutter -idle 5 | |
# @xset s noblank | |
# @xset s off | |
# @xset -dpms |
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
git-duet() { | |
if [ "$#" -lt 3 ]; then | |
echo "Usage: git-duet \"Commit message\" \"Second Committer\" \"second.committer@mail.com\"" | |
else | |
git commit --message "$1" --author "$2 <$3>" --signoff | |
fi | |
} |
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
#!/usr/bin/env sh | |
# exit on any error, unset variable | |
set -eu | |
# checks if a specific file (such as a version file) has been updated before commit | |
FILE="file.txt" | |
if ! git diff --cached "${FILE}"; 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
#!/bin/sh | |
# exit on any error, unset variable, or failed piped commands | |
set -euo pipefail | |
# set hooks path | |
git config core.hooksPath ".git-hooks" | |
chmod -R +x "$(git rev-parse --git-path hooks)" | |
# check if command is installed |
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 android.util.Log | |
import com.miniweather.util.Empty | |
import okhttp3.mockwebserver.Dispatcher | |
import okhttp3.mockwebserver.MockResponse | |
import okhttp3.mockwebserver.MockWebServer | |
import okhttp3.mockwebserver.QueueDispatcher | |
import okhttp3.mockwebserver.RecordedRequest | |
import org.junit.rules.ExternalResource | |
import java.io.IOException | |
import java.util.ArrayDeque |
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
// https://www.jetbrains.com/help/idea/settings-scopes.html | |
App Files: | |
(src:*..*)&&!file:*intermediates*/&&!file:*generated*/&&!file:*build*/ | |
App and Test: | |
(src:*..*||test:*..*)&&!file:*intermediates*/&&!file:*generated*/&&!file:*build*/ | |
Test: | |
(test:*..*)&&!file:*intermediates*/&&!file:*generated*/&&!file:*build*/ |
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
#!/usr/bin/env python3 | |
# forked from https://github.com/owntracks/tools/blob/master/Google/import-location-history.py | |
# docs: https://owntracks.org/booklet/tech/json/ | |
# replace: | |
# hostname/ip | |
# topic user device | |
# filename | |
# TID tracker ID |
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
{ | |
"app": { | |
"launch": { | |
"urls": [ | |
"https://tasks.google.com/embed/?origin=https://calendar.google.com&fullWidth=1" | |
], | |
"web_url": "https://tasks.google.com/embed/?origin=https://calendar.google.com&fullWidth=1", | |
"container": "tab" | |
} | |
}, |
OlderNewer