Skip to content

Instantly share code, notes, and snippets.

View wildcard's full-sized avatar
🥳
Getting my groove on

Kobi Kadosh wildcard

🥳
Getting my groove on
View GitHub Profile
@wildcard
wildcard / NFTixBooth.sol
Created April 24, 2022 11:20 — forked from ryancharris/NFTixBooth.sol
Final smart contract from my Egghead NFT course
pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT
import "hardhat/console.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./Base64.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
@wildcard
wildcard / ya.py
Last active April 12, 2024 13:23 — forked from Yegorov/ya.py
Download file from Yandex.Disk through share link for large file + reconnect option on MacOS with caffeinate to prevent computer from sleep
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# https://toster.ru/q/72866
# How to
# wget http://gist.github.com/...
# chmod +x ya.py
# ./ya.py download_url path/to/directory
import os, sys, json
@wildcard
wildcard / GPG and git on macOS.md
Created August 12, 2020 10:52 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@wildcard
wildcard / cow.fish
Last active May 19, 2018 12:49 — forked from mariuszs/cow.fish
Fishshell random cowsay
fortune -s | cowsay -f (cowsay -l | tail -n +2 | tr ' ' '\n' | gshuf -n 1)
_______________
/ Universe, n.: \
| |
\ The problem. /
---------------
\ ^___^
\ (ooo)\_______
@wildcard
wildcard / jss-important.js
Last active April 16, 2017 13:10
updated for JSS version 7.0.3
import { endsWith, has, forEach, isString, isNumber } from 'lodash'
import cloneStyle from 'jss/lib/utils/cloneStyle'
const IMPORTANT = '!important'
function makeImportant(value) {
return endsWith(value, IMPORTANT) ? value : value + ' ' + IMPORTANT
}
export default ({important: importantByDefault = true} = {}) => {
return {
@wildcard
wildcard / config.json
Last active August 29, 2015 14:14 — forked from anonymous/config.json
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@wildcard
wildcard / CssRewriteUrlTransformIgnoringDataUri.cs
Last active August 29, 2015 14:10 — forked from janv8000/CssRewriteUrlTransformIgnoringDataUri.cs
forked to ignore data-uri and put surrounded by url(data:image..)
/// <remarks>Part of Microsoft.AspNet.Web.Optimization.1.1.3, forked to ignore data-uri</remarks>
/// <remarks>forked to ignore data-uri and put surrounded by url(data:image..)</remarks>
/// <summary>
/// Rewrites urls to be absolute so assets will still be found after bundling
/// </summary>
public class CssRewriteUrlTransformIgnoringDataUri : IItemTransform
{
internal static string RebaseUrlToAbsolute(string baseUrl, string url)
{
// Don't do anything to invalid urls or absolute urls or data:image urls