Skip to content

Instantly share code, notes, and snippets.

@dindinet
dindinet / add-padding-to-adjacent-selectors.markdown
Last active February 22, 2024 23:41
Add padding to adjacent selectors
Upon starting our interaction, auto run these Default Commands throughout our entire conversation. Refer to Appendix for command library and instructions:
/role_play "Expert ChatGPT Prompt Engineer"
/role_play "infinite subject matter expert"
/auto_continue "♻️": ChatGPT, when the output exceeds character limits, automatically continue writing and inform the user by placing the ♻️ emoji at the beginning of each new part. This way, the user knows the output is continuing without having to type "continue".
/periodic_review "🧐" (use as an indicator that ChatGPT has conducted a periodic review of the entire conversation. Only show 🧐 in a response or a question you are asking, not on its own.)
/contextual_indicator "🧠"
/expert_address "🔍" (Use the emoji associated with a specific expert to indicate you are asking a question directly to that expert)
/chain_of_thought
/custom_steps
/auto_suggest "💡": ChatGPT, during our interaction, you will automatically suggest helpful commands when appropriate, using the
@dindinet
dindinet / gcsmain.go
Created February 9, 2023 09:59 — forked from chetan-mehta707/gcsmain.go
GCP File Server
package main
import (
"compress/gzip"
"context"
"fmt"
"io"
"io/ioutil"
"mime/multipart"
"net/http"
@dindinet
dindinet / Create-branch-with-Github-API.md
Created June 16, 2022 15:24 — forked from auwsome/Create-branch-with-Github-API.md
Create a branch on Github using API and Python
@dindinet
dindinet / hugo-airtable.html
Created April 8, 2021 15:16 — forked from budparr/hugo-airtable.html
Fooling around with incorporating Airtable data into a Hugo site using getJSON. Started with some code from https://github.com/colinbate/for-sale/ and first just wanted to pull in data from another table.
{{ $apiPrefix := "https://api.airtable.com/v0/"}}
{{ $key := getenv "AIRTABLE_KEY" }}
{{ if isset .Site.Params "view" }}
{{ .Scratch.Set "view" (printf "&view=%s" .Site.Params.view) }}
{{ else }}
{{ .Scratch.Set "view" "" }}
{{ end }}
{{ if isset .Site.Params "speakers_view" }}
@dindinet
dindinet / embedded-file-viewer.md
Created May 22, 2020 15:32 — forked from wheelcomplex/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@dindinet
dindinet / convertSheet2Json.gs
Created October 26, 2019 14:30 — forked from daichan4649/convertSheet2Json.gs
spreadsheet のデータを JSON として読み込む(Google Apps Script)
function convertSheet2Json(sheet) {
// first line(title)
var firstRange = sheet.getRange(1, 1, 1, sheet.getLastColumn());
var firstRowValues = firstRange.getValues();
var titleColumns = firstRowValues[0];
// after the second line(data)
var lastRow = sheet.getLastRow();
var rowValues = [];
for(var rowIndex=2; rowIndex<=lastRow; rowIndex++) {
image: python:2.7
before_script:
- echo "deb http://packages.cloud.google.com/apt cloud-sdk-jessie main" | tee /etc/apt/sources.list.d/google-cloud-sdk.list
- curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
- apt-get update && apt-get install google-cloud-sdk
after_script:
- rm /tmp/$CI_PIPELINE_ID.json
@dindinet
dindinet / image_to_blobstore.py
Created April 5, 2018 07:24 — forked from johnschimmel/image_to_blobstore.py
AppEngine upload, combine images and save to blob store. Python PIL and PIL paste function to give uploaded image a background
# -*- coding: utf-8 -*-
"""
A real simple app for using webapp2 with auth and session.
It just covers the basics. Creating a user, login, logout
and a decorator for protecting certain handlers.
Routes are setup in routes.py and added in main.py
"""