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 / 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
@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 / keybase.md
Created January 2, 2016 16:50
Keybase proof

Keybase proof

I hereby claim:

  • I am wildcard on github.
  • I am kobi (https://keybase.io/kobi) on keybase.
  • I have a public key whose fingerprint is 9BA0 88AF B04E FE9C 0C49 5B9C 2FE8 A695 C396 660F

To claim this, I am signing this object:

@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 / trello.30m.sh
Created August 17, 2017 13:40
Show Trello list cards in bitbar
#!/bin/bash
JQ=/usr/local/bin/jq
export $(egrep -v '^#' ~/.bitbar/.env | xargs)
TRELLO_API="https://api.trello.com/1"
TRELLO_AUTH_QS="key=$TRELLO_DEVELOPER_PUBLIC_KEY&token=$TRELLO_MEMBER_TOKEN"
TRELLO_LIST_ID=$(curl -s --request GET --url "$TRELLO_API/boards/$TRELLO_BOARD_ID/lists?$TRELLO_AUTH_QS" | $JQ ".[] | { name: .name, id: .id, match: (.name == \"$TRELLO_LIST_NAME\") } | select (.match) | .id" -r)
TRELLO_LIST=${TRELLO_LIST_ID:-$TRELLO_LIST_DEFAULT}
@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 / mnist.ipynb
Last active October 12, 2018 23:25
mnist.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wildcard
wildcard / example-html-wireframe.markdown
Created January 16, 2019 16:58
Example HTML Wireframe
@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 / sentry.5m.sh
Created January 30, 2021 11:27
sentry bitbar plugin bash implementation
#!/usr/bin/env bash
SERVICE=""
ISSUE_COUNT=5
ORG=""
PROJECT_URL="https://app.getsentry.com/$ORG/$SERVICE"
TOKEN=""
echo "Sentry"
echo "---"