Skip to content

Instantly share code, notes, and snippets.

View nsdevaraj's full-sized avatar
🎯
Focusing

N.S.Devaraj nsdevaraj

🎯
Focusing
View GitHub Profile
@VigneshRavichandran02
VigneshRavichandran02 / demo.md
Created October 28, 2023 12:27
Introduction to Containers Demo
@dgosbell
dgosbell / AutoPopulateMeasureDescriptionsFromOpenAI.csx
Last active February 17, 2024 03:53
This is a script for tabular editor that will loop through all the measures in a model and get ChatGPT to write a description of the calculation.
#r "System.Net.Http"
using System.Net.Http;
using System.Text;
using Newtonsoft.Json.Linq;
// You need to signin to https://platform.openai.com/ and create an API key for your profile then paste that key
// into the apiKey constant below
const string apiKey = "<YOUR API KEY HERE>";
const string uri = "https://api.openai.com/v1/completions";
const string question = "Explain the following calculation in a few sentences in simple business terms without using DAX function names:\n\n";
@nsdevaraj
nsdevaraj / extend.sh
Created September 9, 2022 11:08
extend Final Cut Pro trial
mv -v ~/Library/Application\ Support/.ffuserdata ~/.Trash
@ChrisPenner
ChrisPenner / git-transplant
Last active February 12, 2021 15:26
Transplant commits from one source to another
#!/bin/bash
if [[ $# -ne 2 ]]; then
cat >&2 <<EOF
Transplant a branch from one root to another.
Handy if you've done a squash-merge and need to rebase <from> the old branch <onto> the new master.
Usage:
git transplant <from> <to>
where:
@ArztSamuel
ArztSamuel / ParkingCarAgent.cs
Last active May 19, 2022 08:43
Most important parts of the Agent code used for the project of https://youtu.be/VMp6pq6_QjI
public class ParkingCarAgent : Agent
{
[SerializeField]
private Transform TargetParkingSpot;
[SerializeField]
// = Reward every 'interval' units getting closer
private float DistanceRewardInterval = 3f;
// Thresholds defining when the task is complete
@jifunks
jifunks / pwnmedium.user.js
Last active July 13, 2020 18:24
Medium.com uses design and typography to legitimize ideas that might not deserve legitimacy. This script kills Medium's design so that critical thinking takes precedence over eye candy.
// ==UserScript==
// @name Remove Legitimacy From Medium
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Medium.com frames everyone's opinions in a way that gives them legitimacy in the subconscious. In reality, they are no more than blog posts. This script serves to strip any form of nice styling or legitimacy from Medium posts, and encourage critical thinking.
// @author Jake Funke
// @match medium.com/*
// @include https://*.medium.com/*
// @grant GM_addStyle
// @run-at document-idle
@rise-worlds
rise-worlds / For Mac 4.2.6 unlimited trial.md
Last active May 7, 2024 01:46 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@328
328 / ViewController.swift
Created April 5, 2018 06:06
SFSafariViewControllerのテスト
import UIKit
import SafariServices
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
@Jc2k
Jc2k / post.md
Last active June 27, 2018 07:02
My first alexa skill

Backend

I used the alexandra python package. See https://pypi.python.org/pypi/alexandra. It abstracts away dealing with HTTP or Lambda and you just use decorators to map Alexa intents to python functions. Here is my test.py:

import alexandra

app = alexandra.Application()
name_map = {}

@app.launch