Skip to content

Instantly share code, notes, and snippets.

View nnmrts's full-sized avatar
❣️
hello

Nano Miratus nnmrts

❣️
hello
View GitHub Profile
@swinton
swinton / README.md
Last active May 14, 2024 10:06
Automatically sign your commits from GitHub Actions, using the REST API

Verified commits made easy with GitHub Actions

image

So you want to commit changes generated by a GitHub Actions workflow back to your repo, and have that commit signed automatically?

Here's one way this is possible, using the REST API, the auto-generated GITHUB_TOKEN, and the GitHub CLI, gh, which is pre-installed on GitHub's hosted Actions runners.

You don't have to configure the git client, just add a step like the one below... Be sure to edit FILE_TO_COMMIT and DESTINATION_BRANCH to suit your needs.

@uwekamper
uwekamper / cowtest.sh
Last active May 29, 2018 07:29
Test all the cowsay characters
#!/bin/sh
for i in `cowsay -l | tail -n +2`
do
echo $i
cowsay -f $i "Ich bin die Kuh"
sleep 3
done
import React, { Component, PropTypes, Children, cloneElement } from 'react'
import { findDOMNode } from 'react-dom'
import { Motion, spring, presets } from 'react-motion'
import Measure from '../src/react-measure'
class Slideable extends Component {
static propTypes = {
children: PropTypes.node.isRequired,
show: PropTypes.bool.isRequired,
springConfig: React.PropTypes.objectOf(React.PropTypes.number)
@souporserious
souporserious / Slideable.jsx
Last active March 5, 2018 02:29
Slideable component using React Measure & React Motion
const { Component, PropTypes } = React
const { Spring } = ReactMotion
const propTypes = {
component: PropTypes.string,
defaultHeight: PropTypes.number,
springConfig: PropTypes.array,
toggle: PropTypes.bool
}
/*
* apng-detect.js
* 2010-06-13
* By Eli Grey, http://eligrey.com
*
* Detects if a browser supports the APNG format and sets a
* global `APNG` boolean indicating if the browser supports APNG.
*
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.