Skip to content

Instantly share code, notes, and snippets.

Josef Richter josefrichter

Block or report user

Report or block josefrichter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View TapRecognizer.jsx
import * as React from "react"
import { Frame } from "framer"
// change your presets here
const doubleTapMiliseconds = 300
const longTapMiliseconds = 400
export function TapRecognizer() {
const [tapTimestamp, setTapTimestamp] = React.useState(
View loginScreen.js
* Sample React Native App
'use strict';
const React = require('react-native');
const FBSDKCore = require('react-native-fbsdkcore');
const FBSDKLogin = require('react-native-fbsdklogin');
View CheckBox.tsx
return <Frame style={style} onTap={this.onTap}>
<div style={{opacity:checkMarkOpacity, color: 'white'}}>
<svg xmlns="" width="16" height="16" viewBox="0 -1 24 24"><path fill="none" d="M0 0h24v24H0z"/><path fill="white" stroke="none" d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>
josefrichter / OrganismCard.tsx
Created Sep 22, 2018
slot pattern for framer x
View OrganismCard.tsx
import * as React from "react";
import { Frame, PropertyControls, ControlType } from "framer";
import { MoleculeLeftContentText } from "./MoleculeLeftContentText"
import { MoleculeLeftContentTextTwoLines } from "./MoleculeLeftContentTextTwoLines";
const style: React.CSSProperties = {
height: 78,
marginLeft: 12,
marginRight: 12,
paddingLeft: 18,
View MagazineViewController.swift
import UIKit
import WebKit
class MagazineViewController: UIViewController, UIWebViewDelegate {
@IBOutlet weak var webview: UIWebView!
override func viewDidLoad() {
josefrichter / .htaccess
Created May 14, 2015
Simple password protection of Framer.js projects pushed to Heroku
View .htaccess
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^https://(.*\.)? [NC]
RewriteCond %{HTTP_REFERER} !^https://(.*\.)?*$ [NC]
RewriteRule \.(html|coffee|js)$ - [F]
View index.jsx
class Application extends React.Component {
constructor() {
this.state = {
currentUser: null,
joinError: null,
View index.jsx
const _fbBase = new Firebase('https://•••••••••');
_fbBase.child('users/'+newUserID+'/conversations').on('value', function(snap){
var obj = snap.val();
var arr = Object.keys(obj).map(function (key) {return obj[key]}); // just converting to array -
_this.setState({conversations: arr});
class ConvoList extends React.Component {
View gist:5204573
class Myrecord < ActiveRecord::Base
# property :id, Serial
# property :name, String, length: 4..35
# property :desc, Text
# timestamps :at
attr_accessor :foo # this one is NOT persisted in database
View gist:5187484
class Idea < ActiveRecord::Base
# property :id, Serial
# property :name, String, length: 4..35
# property :desc, Text
# timestamps :at
attr_accessor :matched_i_seek
attr_accessor :matched_i_have
attr_accessor :matches_count
You can’t perform that action at this time.