Skip to content

Instantly share code, notes, and snippets.

View martinhalik's full-sized avatar

Martin Halik martinhalik

View GitHub Profile
@jonastreub
jonastreub / Store.ts
Last active April 1, 2024 10:11
Share state between Framer components using a Store
import * as React from "react"
// For sharing a search string among components
// export const searchStore = new Store("");
// Register class components on mount
// componentDidMount() { searchStore.registerComponent(this) }
// And unregister on unmount
// componentWillUnmount() { searchStore.unregisterComponent(this) }
@chantastic
chantastic / gulpfile.js
Last active October 13, 2023 03:20
This a script for a Full Stack Talk, given 3/13/14. Feel free to follow along at your own pace.
var gulp = require('gulp');
var coffee = require('gulp-coffee');
gulp.task('scripts', function () {
gulp.src('src/*.coffee')
.pipe(coffee())
.pipe(gulp.dest('./'));
});
gulp.task('watch', function () {
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@adamloving
adamloving / git-collaborative-workflow.md
Last active January 27, 2024 02:36
Simple Git workflow for collaborating on a project. I wrote this to help a co-worker learn Git (and help me remember after a year of working on my own).

Creating the change

$ git checkout -b my-feature

... modify code ....

$ git add <filename> 
$ git commit -m “my feature is this”
@marekhrabe
marekhrabe / enigma.html
Last active August 20, 2018 17:56
Typing Enigma from http://getenigma64.com/
<div id="enigma"></div>