Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppleAntiAliasingThreshold</key>
<integer>1</integer>
<key>ApplePressAndHoldEnabled</key>
<false/>
<key>AppleScrollAnimationEnabled</key>
<integer>0</integer>
@phaistonian
phaistonian / gpr.sh
Created January 26, 2021 09:04
alias gpr="sh gpr.sh"
#! /bin/bash
set -e
BRANCH=$(git rev-parse --abbrev-ref HEAD)
REMOTE=$(git remote get-url origin)
URL="$REMOTE/compare/$BRANCH?expand=1";
if [ "$BRANCH" = "master" ]
then
echo You must checkout a feature branch first
@phaistonian
phaistonian / getImgSrc.js
Last active April 27, 2018 08:40
getImgSrc
export default (input, options = {
title: 'image',
size: null,
height: null,
width: null,
crop: {},
cover: false,
}) => {
const data = typeof input === 'string'
? {
@phaistonian
phaistonian / saveToGSheet.js
Created July 12, 2017 09:08
A little helper to make saving to Google Sheets super easy
// Instructions here: https://gist.github.com/phaistonian/1f3de5f8bc0acaf4c48334d0a9384d28
const saveToGSheet = (urlOrId, data) => {
const url = urlOrId.indexOf('https') === -1
? `https://script.google.com/macros/s/${urlOrId}/exec`
: urlOrId;
const formData = new FormData();
Object.keys(data)
.forEach(key => {
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
<?php
echo Utils::icon('hello-12');
?>
import Icon from 'components/Icon';
export default ({ onClick }) => <Icon
icon="hello-12"
onClick={onClick} />;
@phaistonian
phaistonian / ResetPass.jsx
Last active April 13, 2017 12:56
The reset password template file for BPMail
const App = props => {
const { authKey, recipientId } = props;
return (
<Body>
<Header />
<MainMessage img="reset_pass">
<P>Λάβαμε αίτημα για αλλαγή κωδικού πρόσβασης του λογαριασμού σου στο BestPrice.
Για να αλλάξεις τον κωδικό σου κάνε κλικ στο παρακάτω κουμπί:</P>
@phaistonian
phaistonian / adman-glomex-breakdown.js
Last active July 21, 2016 20:04
Glomex / Ant1 / Breakdown
var adSchedule = {
start: 3251,
'20s': 3252,
'30s': 3253,
end: 3254
};
var parseAdSchedule = function (adSchedule) {
var result = {};
import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom';
import round from 'modules/rounder';
import Icon from 'components/Icon';
import getDisplayName from 'react-display-name';
const Modal = (content = null) => ComposedComponent => class extends Component {
static displayName = ComposedComponent
? `Modal(${getDisplayName(ComposedComponent)})`
: null;