This file contains hidden or 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
.form-field { | |
$this: &; | |
@apply relative block; | |
&__label { | |
@apply block cursor-pointer; | |
.emailaddress &, | |
.longanswer &, |
This file contains hidden or 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
using System.Web.Http; | |
using Umbraco.Core.Services; | |
using Umbraco.Web.WebApi; | |
namespace Yoyo.Elevator.Core.Controllers | |
{ | |
public class SaveMediaController : UmbracoApiController | |
{ | |
private readonly IMediaService _mediaService; |
This file contains hidden or 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
SSH_ENV=$HOME/.ssh/environment | |
# start the ssh-agent | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
# spawn ssh-agent | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null |
This file contains hidden or 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
// ---- | |
// Sass (v3.4.25) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin font-size($font-size, $line-height: null) { | |
font-size: $font-size; | |
@if $line-height != null { | |
@if unit($font-size) == unit($line-height) { |
This file contains hidden or 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
// Nothing here, sorry! |
This file contains hidden or 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
javascript:var a=document.querySelectorAll("*"),b,c=function(){return Math.round(Math.random()*255);},d=function(){return "rgb("+c()+","+c()+","+c()+")";};setInterval(function(){for(b=0;b<a.length;b+=1){a[b].style.backgroundColor=d();a[b].style.color=d();}},250);return false; |
This file contains hidden or 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
javascript:var a=document.querySelectorAll('link[rel="stylesheet"]'),b,c,d,e='href';for(b in a){c=a[b];d=c[e];c[e]='';c[e]=d} |
This file contains hidden or 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
START calvin = node(1), sophie = node(2) | |
CREATE (calvin)-[:LIKES]->(sophie) | |
MATCH (calvin)-[r:LIKES]->(sophie), (calvin)-[:LIKES]->(sophie) | |
DELETE r | |
RETURN count(r) = 1 AS likes |
This file contains hidden or 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
// Don't do this: | |
for (var i = 0; i < 100; i += 1) { | |
$("#foo").text(i); | |
} | |
// Do this instead: | |
var $foo = $("#foo"); | |
for (var i = 0; i < 100; i += 1) { | |
$foo.text(i); | |
} |