Skip to content

Instantly share code, notes, and snippets.

View zianwar's full-sized avatar

Anwar zianwar

View GitHub Profile
using Azure;
using Azure.Data.Tables;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using Polly;
using System.Runtime.CompilerServices;
public class AzureTableServiceException : Exception
{
public AzureTableServiceException(string message, Exception inner)
@zianwar
zianwar / contemplative-llms.txt
Created January 8, 2025 06:17 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
{
"search": [
{
"prefix": "g",
"search_url": "https://google.com/search?q={0}"
},
{
"prefix": "ado",
"search_url": "https://dev.azure.com/msft-twc/?search={0}"
}
@zianwar
zianwar / github-search-cheatsheet.md
Created October 3, 2023 04:15 — forked from bonniss/github-search-cheatsheet.md
Github search cheatsheet from official docs.

Github Search Cheat Sheet

GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.

For more information, visit our search help section.

Basic search

package main
import (
"encoding/json"
"flag"
"fmt"
"log"
"strings"
)
@zianwar
zianwar / dice.ts
Created June 25, 2023 00:04
Backtracking - diceRoll, diceSum - https://www.youtube.com/watch?v=tC1rgphJtO4
/**
* Prints all possible combinations of values that could appear after rolling the dice.
*/
function diceRoll(dice: number, chosen: number[]) {
if (dice == 0) {
// Base case, print.
console.log(chosen);
} else {
for (let i = 1; i <= 6; i++) {
@zianwar
zianwar / ffmpeg.sh
Last active August 13, 2020 22:57
Greenscreen to transparent video
ffmpeg -i input.mp4 -b:v 1M -vf chromakey=0x00FF00:0.2:0.2 -c:v libx264 -pix_fmt yuva420p -metadata:s:v:0 alpha_mode="1" -auto-alt-ref 0 output.webm
@zianwar
zianwar / graphvis.go
Last active February 11, 2020 03:35
Graphvis Golang
package main
import (
"fmt"
"github.com/awalterschulze/gographviz"
)
func main() {
g := gographviz.NewGraph()