Skip to content

Instantly share code, notes, and snippets.

@qoomon
qoomon / conventional_commit_messages.md
Last active April 18, 2024 16:53
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@jeffdonthemic
jeffdonthemic / apex-crud-fls.txt
Last active April 18, 2024 16:52
Simple Apex Controller with CRUD and FLS
This simple controller (without CRUD and FLS) ...
public with sharing class AccountController {
@AuraEnabled
public static List<Account> findAll() {
return [SELECT id, name, Location__Latitude__s, Location__Longitude__s
FROM Account
WHERE Location__Latitude__s != NULL AND Location__Longitude__s != NULL
LIMIT 50];
@Hirrolot
Hirrolot / a-preface.md
Last active April 18, 2024 16:50
A complete implementation of the positive supercompiler from "A Roadmap to Metacomputation by Supercompilation" by Gluck & Sorensen

Supercompilation is a deep program transformation technique due to V. F. Turchin, a prominent computer scientist, cybernetician, physicist, and Soviet dissident. He described the concept as follows [^supercompiler-concept]:

A supercompiler is a program transformer of a certain type. The usual way of thinking about program transformation is in terms of some set of rules which preserve the functional meaning of the program, and a step-by-step application of these rules to the initial program. ... The concept of a supercompiler is a product of cybernetic thinking. A program is seen as a machine. To make sense of it, one must observe its operation. So a supercompiler does not transform the program by steps; it controls and observes (SUPERvises) the running of the machine that is represented by the program; let us call this machine M1. In observing the operation of

@shimo164
shimo164 / drug_arrest.csv
Last active April 18, 2024 16:49
薬物で芸能人が逮捕されたリスト
名前 年月日 曜日 容疑 政治的な批判の対象があったか
尾崎豊 1987-12-22 覚醒剤
今井寿(BUCK-TICK) 1989-04-21
勝新太郎 1990-01-01
ミッキー吉野(ゴダイゴ) 1992-06-01 覚醒剤
江夏豊 1993-03-03 覚醒剤
長渕剛 1995-01-24 大麻
sakura(元L'Arc〜en〜Ciel) 1997-02-24 覚醒剤
翔(横浜銀蝿) 1997-02-27 覚醒剤
槇原敬之 1999-08-26 覚醒剤
@lohhans
lohhans / README-PTBR.md
Last active April 18, 2024 16:49 — forked from PurpleBooth/README-Template.md
Um modelo para fazer um bom README.md

Título do projeto

Um parágrafo da descrição do projeto vai aqui

🚀 Começando

Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.

Consulte Implantação para saber como implantar o projeto.

@onnayokheng
onnayokheng / index.html
Created September 3, 2019 16:16
HTML Code Game Pacman
<!DOCTYPE html>
<html>
<head>
<title>Maintenance - Moota.co</title>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Permanent+Marker">
<style type="text/css">
body {
background-color: black;
}
@marcosfreccia
marcosfreccia / linking-data-sources-ssrs-reports.ps1
Last active April 18, 2024 16:48
This script helps you to link Data Sources to SSRS after a migration to a different report Report Server.
$TargetReportServerURL = "http://MySSRSServer/ReportServer"
$ReportServer = "MySqlServerInstance"
$ReportServerDB = "ReportServer"
$RootFolder = "/MyReports"
$DataSourceUrlPath = "/MyReports/Data Sources/SalesDataSource"
<#
This query assumes that in the $RootFolder you have reports that links to only a single Data Source.
If you have in the same $RootFolder reports that have different data sources, you would a new parameter
and also change your WHERE clause to add this possibility.
@mickmister
mickmister / scrape_new_plugins.sh
Last active April 18, 2024 16:45
This bash script checks if there are any new plugins added to the Mattermost plugin marketplace, and creates a new post through a Mattermost incoming webhook request. The script downloads the latest listing, and compares that with a locally stored version of the listing. On the first run of the script, no post will be made since there is nothing…
#!/usr/bin/env bash
if [ -z "$MM_WEBHOOK_URL" ]
then
echo "Please set the MM_WEBHOOK_URL environment variable"
exit 0
fi
LOCAL_PLUGINSJSON_PATH="plugins.json"
REMOTE_PLUGINSJSON_PATH="new_plugins.json"
@annezazu
annezazu / content lock pattern
Last active April 18, 2024 16:45
An example of a pattern with content locking implemented.
function register_block_patterns() {
if ( class_exists( 'WP_Block_Patterns_Registry' ) ) {
$content = '<!-- wp:group {"templateLock":"contentOnly","align":"wide","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide"><!-- wp:image {"align":"wide","id":501,"sizeSlug":"full","linkDestination":"none","style":{"color":{"duotone":["#1a4548","#ffffff"]}}} -->
<figure class="wp-block-image alignwide size-full"><img src="https://s.w.org/patterns/files/2021/06/Group-17-scaled.jpg" alt="Image of a woman being carried through the air by swans." class="wp-image-501"/></figure>
<!-- /wp:image -->
<!-- wp:columns {"verticalAlignment":"center","align":"wide"} -->