Skip to content

Instantly share code, notes, and snippets.

View Polyrhythm's full-sized avatar
🎯
Focusing

Polyrhythm

🎯
Focusing
View GitHub Profile
(define (batch-monochrome pattern)
(let* ((filelist (cadr (file-glob pattern 1))))
(while (not (null? filelist))
(let* ((filename (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE
filename filename)))
(drawable (car (gimp-image-get-active-layer image)))
(LUMINOSITY-FORMULA 1))
; do stuff here
(gimp-desaturate-full drawable LUMINOSITY-FORMULA)
(ns game.scenes.one-two.core)
(defn glitch [duration]
(timeline [(tween {:analog-glitch {:color-drift 0.3 :scanline-jitter 0.3}} Camera/main duration)
(tween {:analog-glitch {:color-drift 0 :scanline-jitter 0}} Camera/main duration)])))
(defn init-scene []
(setup-scene))
(deftween [:analog-glitch :color-drift] [this]
namespace Client.UI
{
public class LogPanelComponent : ScopeComponent
{
[Serializable]
public class Log
{
// Position of log.
public Transform transform;
}

Keybase proof

I hereby claim:

  • I am polyrhythm on github.
  • I am polyrhythm (https://keybase.io/polyrhythm) on keybase.
  • I have a public key whose fingerprint is 1DFA 4B1F 02B6 FEF6 8CFC 132A D7F1 B180 3B49 E262

To claim this, I am signing this object:

import { NOTIFICATION_QUEUE_NAME } from './../../shared/config.js';
import { notificationProducer } from './../notificationProducer.js';
import { MOST_VIRAL } from './../../shared/constants/routes.js';
import { logger } from './../../shared/logger.js';
export default function mostViral (accountId, postId) {
// This module doesn't need to post to Redis,
// because one mostViral post triggers a notification
const payloads = [
(define atom?
(lambda (x)
(and (not (pair? x)) (not (null? x)))))
(define lat?
(lambda (l)
(cond
((null? l) #t)
((atom? (car l)) (lat? (cdr l)))
(else #f))))
import React, { Component, PropTypes } from 'react';
import { Motion, spring } from 'react-motion';
import { isGesture } from 'shared/util/gesture';
const styles = {
spring: {
strength: 150,
damping: 10,
},
button: {
Imzy's business model + why we won't give you auto-playing audio ads (or hopefully any other kind of ads)
Announcement
We’ve heard about another site recently that suddenly started auto-playing audio ads, even if you had an adblocker on, and, interestingly, we’ve started getting some more attention and questions as a result.
So I thought we’d explain to all of you who are new or who maybe just haven’t heard us talk about this before, what our business model is. Because here’s the thing: we believe we can grow to be a successful company that makes money in a way that actually benefits our users, without using ads at all.
Getting the payment infrastructure in place
Most of you know that the ability on Imzy exists to tip posts, comments, and communities on Imzy. It was important to us that we include our payments platform in some way from day one, and this was the simplest way to do it. You can give any community, post, or comment a reward for great content that you really appreciate. But that is just the tin
EBGUIP = window.EBGUIP || {};
EBGUIP.SizmekDI = function(options, extra) {
this.options = options || {};
var t = [];
this.languageKey(t);
this.languagesKey(t);
this.hasLiedLanguagesKey(t);
this.colorDepthKey(t);
this.screenResolutionKey(t);
this.availableScreenResolutionKey(t);
@Polyrhythm
Polyrhythm / component.jsx
Last active October 15, 2015 23:21
Isomorphic component
export default class IsomorphicComponent extends React.Component {
// this only executes on the browser
componentDidMount() {
const wrapper = React.findDOMNode(this.refs.app);
wrapper.style.left = wrapper.getBoundClientRect().left + 'px';
}
// this executes on the server and the browser
render() {
return (