Skip to content

Instantly share code, notes, and snippets.

View realph's full-sized avatar

Raphael Essoo-Snowdon realph

View GitHub Profile
dsd
@realph
realph / interface-design-getting-started.md
Last active April 6, 2020 21:47
Getting started with interface design

Getting started with interface design

Books

Haven't read it before but it's often heralded as good entry point for designing interfaces.

@realph
realph / await.js
Last active March 2, 2017 00:20
Await Example
/* Github Profile Fetcher */
async function fetchProfile(u) {
const res = await fetch(`https://api.github.com/users/${u}`);
// 1. Check user exists
if (!res) {
alert('User does not exist!');
return;
}
@realph
realph / dealing-with-local-wordpress-permission-levels
Created November 12, 2013 17:31
Give WordPress directories a permission level of 775 and files a permission level of 664. Stolen from the great Pontus Abrahamsson over on WP Stack Exchange. http://wordpress.stackexchange.com/questions/57166/ftp-credentials-on-localhost
cd /wherever/sites/the-site
sudo chown -R _www wordpress-folder
sudo chmod -R g+w wordpress-folder
@realph
realph / .gitignore
Created February 26, 2013 21:06 — forked from redoPop/.gitignore
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@realph
realph / gist:4964457
Created February 15, 2013 23:25
dfsdsf
dsds
(function() {
'use strict';
var angular = require('angular');
angular.module('zeroApp', [])
.controller('MainController', ['$scope', function($scope) {
$scope.message = "Hello Angular!";
}]);
@realph
realph / js-task.js
Last active August 29, 2015 14:21
Gulp Zero Tasks
gulp.task('js', function () {
// define our sole entry point (source file)
return browserify({entries: ['./src/js/app.js']})
// bundle our js
.bundle()
// create a vinyl object
.pipe(source('app.js'))
// convert vinyl file to buffer
.pipe(buffer())
// create our source maps
@realph
realph / SassMeister-input-HTML.html
Last active August 29, 2015 14:13
Generated by SassMeister.com.
<a class="button-pri">Primary Button</a>
<a class="button-sec">Secondary Button</a>
@realph
realph / SassMeister-input-HTML.html
Created January 8, 2015 15:08
Generated by SassMeister.com.
<a class="button-pri">Primary Button</a>
<a class="button-sec">Secondary Button</a>