Skip to content

Instantly share code, notes, and snippets.

View panayi's full-sized avatar

Panos Panagi panayi

  • Munich, Germany
  • 23:38 (UTC +01:00)
  • X @ppanagi
View GitHub Profile
@panayi
panayi / gist:d17acab4ea62fdc491f63654e1f1a633
Created September 3, 2020 19:15 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:

Keybase proof

I hereby claim:

  • I am panayi on github.
  • I am ppanagi (https://keybase.io/ppanagi) on keybase.
  • I have a public key whose fingerprint is 42F9 471F B12A 0CB4 592E F424 C299 0AD9 A0DA 7C7A

To claim this, I am signing this object:

@panayi
panayi / AiFitToArtboard.jsx
Created May 16, 2016 18:56 — forked from ruandre/AiFitToArtboard.jsx
Adobe Illustrator script to resize objects proportionally to fit inside the artboard.
/*
License: GPLv2 or later
Adobe Illustrator script to resize objects proportionally to fit inside the artboard.
Works in CS6 (should work in later versions).
Doesn't work in CS3 (and probably won't work in earlier versions).

Meteor Alternatives Per Feature

Feature Meteor Solution Alternative Solutions Description
Live DB Sync [livequery][lq] ([mongo-oplog]), [ddp] RethinkDB, Redis, ShareDB, [npm:mongo-oplog], [firebase], etc. Push DB updates to client/server.
Latency Compensation, Optimistic UI [minimongo][mm] [RethinkDB][lcr], [mWater/minimongo] (fork, not ws but http, browserify) Imitate successful db query on client before it is done.
Isomorphic Code [isobuild] & isopacks browserify Write one code for server/client/mobile.
Isomorphic Packaging [isobuild], atmosphere No more separate packages for server & client. Get bower + npm + mobile.
Realtime Connection ws(websockets), [sockjs] bare ws, [socket.io], [sockjs] Push live updates to client.
Package Management, Ecosystem atmosphere/isopacks + [hacks] Webpack, npm, etc. No hacks, use any, you are free.
@panayi
panayi / Enhance.js
Created November 23, 2015 17:10 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
$ npm ls
[email protected] /Users/ppanagi/Dropbox/development/meteor/react-styleguidist
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
$ npm list
[email protected] /Users/ppanagi/Dropbox/development/meteor/react-styleguidist
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
@panayi
panayi / index.html
Created October 20, 2015 17:36 — forked from jfsiii/index.html
Full-Screen Layout using Flexbox
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Holy Grail</title>
<style>
/* some basic styles. nothing to do with flexbox */
header, footer,
nav, article, aside {
border: 1px solid black;
@panayi
panayi / meteor.cheatsheet.coffee
Last active August 29, 2015 17:21 — forked from LeCoupa/meteor.cheatsheet.coffee
Meteor Cheatsheet: Meteor Core, Publish and Subscribe, Method, Server Connections, Collections, Session, Accounts, Passwords, Templates, Match, Timers, Deps, EJSON, HTTP, Email, Assets, Command Line. More: http://journal.gentlenode.com/meteor-5-cheatsheet/
# METEOR CORE:
Anywhere: Meteor.isClient
Anywhere: Meteor.isServer
Anywhere: Meteor.startup(func)
Anywhere: Meteor.absoluteUrl([path], [options])
Anywhere: Meteor.settings
Anywhere: Meteor.release

Deploying Rails to Linode

Installing Ruby Enterprise Edition, Apache, MySQL, and Passenger for deploying Rails 3.0 applications.

Get a Linode, and set it up with Ubuntu 10.04 LTS so that you have till April 2013 to get updates. Once the Linode is formatted, boot it and continue on.

Set up an 'A' record in your DNS, pointing to the IP of your Linode. I'm using demo.napcs.com here.

Initial setup