Skip to content

Instantly share code, notes, and snippets.

View oceanborn2's full-sized avatar

Pascal M oceanborn2

  • Ile de France, France
View GitHub Profile
@theawesomecoder61
theawesomecoder61 / diffchain
Created March 3, 2020 06:18
HP Prime: Partial derivatives chain rule
// diffchain by pineapples721
// Instructions
// 1. Create a CAS program.
// 2. Conenct your calculator to your PC. Launch the Connectivity Kit.
// 3. Paste this in to the new CAS program.
//2fns, 2vars
#cas
diff22(zfn,xfn,yfn):=
begin
@mkweskin
mkweskin / gist:e531e65791c1d8036dd720ef3baf8af6
Created January 22, 2020 20:12
Github markdown to Jira/Confluence markup using pandoc
pandoc -f gfm -w jira -o outfile.jira infile.md
# To import converted file into Confluence:
# - Create new page
# - Click on the body of the page, click on the " + \/" dropdown in toolbar ("Insert more content") and select "Markup"
# - Paste the contents into the pop-up window (select "Confluence wiki" as the format)
# - Note: The "Markdown" option in the import pop-up doesn't seem to work for Github flavored markdown (gfm).
@eriwen
eriwen / multi-language-sample-adoc-macros.adoc
Last active February 21, 2024 12:08
Multi-language examples for asciidoctor, including all the intermediate transforms, CSS, and HTML, and asciidoc source
@jiffle
jiffle / git-tricks.md
Created August 26, 2018 11:07
Git History Rewriting Tricks

Git History Rewriting Tricks

Removing incorrectly committed files from the last commit

This uses a Soft Reset to revert the commit, leaving the commit modifications as local working copy changes:

git reset --soft HEAD^ or git reset --soft HEAD~1

@bradtraversy
bradtraversy / docker-help.md
Last active March 7, 2026 21:11
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

const fs = require("fs");
const solc = require('solc')
let Web3 = require('web3');
let web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));
var input = {
'strings.sol': fs.readFileSync('strings.sol', 'utf8'),
'StringLib.sol': fs.readFileSync('StringLib.sol', 'utf8'),
@ppazos
ppazos / Groovy Code Generator Sample.groovy
Last active May 18, 2021 15:02
Groovy Code Generator Sample
class Spec {
def classes = []
def model(args)
{
def clazz = new Clazz().named(args.clazz)
if (args.withAttributes)
{
[package]
name = "load-library-test"
version = "0.1.0"
authors = ["Henning Ottesen <henning@live.no>"]
[dependencies]
winapi = "0.2"
kernel32-sys = "0.2.2"
@jiffle
jiffle / GradleCheatsheet.md
Last active December 12, 2025 19:49 — forked from qrman/GradleCheatsheet.md
Cheatsheet of Gradle Commands and Config

Command Cheatsheet

  • Convert Maven build to gradle

    gradle init

  • Initialise new project folder structure (Java example)

    gradle init --type java-library

@minkkinen
minkkinen / org-ref-recoll.el
Created November 25, 2016 06:18
Make a recoll search through org-ref, early version
(defun mmin-recoll-to-list (query)
(interactive "sSearch: ")
(let ((results
(split-string
(shell-command-to-string
(concat "recoll -t -b "
query))
"\n")))
(mapcar 'file-name-base results)))