Skip to content

Instantly share code, notes, and snippets.

@ozgurgulsuna
ozgurgulsuna / GhShaderNodesIntroduction.md
Last active May 21, 2024 16:04
This is a basic introduction on procedurally controlled material nodes for grasshopper with GhShaderNodes.

Introduction to Material Nodes with
GhShaderNodes

What are material nodes and is it possible to control the materials using grasshopper definitons?

Material nodes are type of nodes that produce a material definition when combined. There are many types of blocks in this node system, there are ones for combining textures, colors, for blending materials and etc.

fig-1

It helps us not only to create textures from scratch but control them using our parameters within grasshopper.

@goddoe
goddoe / solution.txt
Last active May 21, 2024 16:04
ssh: connect to host bitbucket.org port 22: Connection timed out
I have done below mentioned things and it started working.
vim ~/.ssh/config
Add these lines and save it.
Host github.com
Hostname ssh.github.com
Port 443
Host bitbucket.org
@andupotorac
andupotorac / styles.css
Created May 21, 2024 16:01 — forked from siliconjungle/styles.css
goopy text
path {
fill: none;
stroke: rgba(52, 53, 60, 1);
stroke-width: 4;
stroke-linecap: round;
}
svg > text {
font-family: 'Geist', sans-serif !important;
fill: rgb(201, 213, 229);
@zbalkan
zbalkan / Wazuh pain points.md
Last active May 21, 2024 16:01
After I started to use Wazuh, around June 2022, I came across many pain points. Here, I recorded and grouped some of them together. There is no specific order, neither alphabetical nor by importance.
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active May 21, 2024 15:59
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 21, 2024 15:59
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@fragmuffin
fragmuffin / .gitignore
Last active May 21, 2024 15:59
python unittest skip by label
__pycache__
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active May 21, 2024 15:56
Make Firefox fast again
@financial-python
financial-python / ema_crossover.py
Last active May 21, 2024 15:54
How to code an EMA crossover in Python
#import the necessary packages
import yfinance as yf
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#download the historical stock data
aapl_df = yf.download("AAPL", start="2018-03-24", end="2023-03-24")
@fatbobman
fatbobman / keyboardAvoiding.swift
Created May 13, 2024 03:49
keyboardAvoiding for List
// by klaytonb
// https://forums.developer.apple.com/forums/thread/699111?answerId=740437022#740437022
import Combine
import SwiftUI
public extension Publishers {
static var keyboardHeight: AnyPublisher<CGFloat, Never> {
let willShow = NotificationCenter.default.publisher(for: UIApplication.keyboardWillShowNotification)
.map { $0.keyboardHeight }
let willHide = NotificationCenter.default.publisher(for: UIApplication.keyboardWillHideNotification)