Skip to content

Instantly share code, notes, and snippets.

View surrealroad's full-sized avatar

Jack James surrealroad

View GitHub Profile
.css-selector {
    background: linear-gradient(49deg, #84c1ff, #ffffff, #b6dceb, #ff82bd);
    background-size: 800% 800%;
    -webkit-animation: BGGradient 49s ease infinite;
    -moz-animation: BGGradient 49s ease infinite;
    -o-animation: BGGradient 49s ease infinite;
    animation: BGGradient 49s ease infinite;
}
@-webkit-keyframes BGGradient {
    0%{background-position:0% 38%}
@erikdoe
erikdoe / CCMKeychainHelper.m
Last active March 17, 2023 18:06
It took me way too long to wade through Keychain documentation and examples, but, finally, I got to a sane implementation of a basic Objective-C interface for managing internet passwords in Keychain. This is from my CCMenu project (http://ccmenu.org).
#import "CCMKeychainHelper.h"
@implementation CCMKeychainHelper
+ (BOOL)setPassword:(NSString *)password forURLString:(NSString *)aString error:(NSError **)errorPtr
{
return [self setPassword:password forURL:[NSURL URLWithString:aString] error:errorPtr];
}
+ (BOOL)setPassword:(NSString *)password forURL:(NSURL *)aURL error:(NSError **)errorPtr
@andyvanee
andyvanee / MyModule.py
Created September 20, 2012 07:26
Embed Python in Objective-C (without PyObjC)
def my_func():
return "embedding?"