Haven't read it before but it's often heralded as good entry point for designing interfaces.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /wherever/sites/the-site | |
sudo chown -R _www wordpress-folder | |
sudo chmod -R g+w wordpress-folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dsds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
var angular = require('angular'); | |
angular.module('zeroApp', []) | |
.controller('MainController', ['$scope', function($scope) { | |
$scope.message = "Hello Angular!"; | |
}]); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a class="button-pri">Primary Button</a> | |
<a class="button-sec">Secondary Button</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a class="button-pri">Primary Button</a> | |
<a class="button-sec">Secondary Button</a> |
NewerOlder