A Pen by Tony Kornmeier on CodePen.
A Pen by Tony Kornmeier on CodePen.
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
<section class="module color showimg preselect" data-common-name="color" | |
data-selector-type="box"> | |
<h2 class="fab-body"> | |
<em>color</em> <span>pink stripe</span> | |
</h2> | |
<div class="swap"> | |
<span> | |
<a> | |
<label> | |
<span>color</span> |
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
git reset --hard HEAD~2 {NUMBER OF COMMITS YOU FUCKED UP} | |
then `git commit` what should be comitted | |
and `git push --force` | |
// only use on your own fork, it will kill history of other people's commits if the HEAD is set back too far. |
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
'use strict'; | |
overlay.exports = function ariaTokenAttr(helperId, attr) { | |
// aria token attributes supported | |
// aria-controls(element, id) | |
// aria-describedBy(element, id) | |
// aria-flowTo(element, id) | |
// aria-labelledBy(element, id) | |
// aria-owns(element, id) |
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
window.addEventListener("beforeunload", function (e) { | |
var confirmationMessage = "\o/"; | |
(e || window.event).returnValue = confirmationMessage; // Gecko and Trident | |
return confirmationMessage; // Gecko and WebKit | |
}); |
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
app = angular.module 'BlogExample', [] | |
# Simple controller that loads all blog posts | |
app.controller 'BlogCtrl', ['$scope', 'Blog', ($scope, Blog) -> | |
# Get all the blog posts | |
Blog.all().then (posts) -> | |
$scope.posts = posts | |
# Extend the $scope with our own properties, all in one big block | |
# I like this because it looks like declaring a class. |
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
git remote -v | |
# View existing remotes | |
# origin https://github.com/user/repo.git (fetch) | |
# origin https://github.com/user/repo.git (push) | |
git remote set-url origin https://github.com/user/repo2.git | |
# Change the 'origin' remote's URL | |
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
public static class MigrationExtensions | |
{ | |
public static int ExecuteNonQuery(this ITransformationProvider itp, string sql, int timeout) | |
{ | |
itp.Logger.Trace(sql); | |
itp.Logger.ApplyingDBChange(sql); | |
IDbCommand ic = itp.GetCommand(); | |
ic.CommandText = sql; | |
ic.CommandTimeout = timeout; | |
try { return ic.ExecuteNonQuery(); } |
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
open -e .bash_profile |
NewerOlder