Skip to content

Instantly share code, notes, and snippets.

Daniel Viedma dviedma

Block or report user

Report or block dviedma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dviedma
dviedma / SassMeister-input.scss
Created Nov 18, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
/* way 1: media query inside of the selector */
.error {
color: red;
@media screen and (max-width: 320px) {
color: blue;
}
@dviedma
dviedma / SassMeister-input.scss
Created Nov 18, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
.error {
color: red;
@media screen and (max-width: 320px) {
color: blue;
}
View gist:9144621
describe("directive.calculateHeight", function(){
var $scope,
element,
$element,
$compile;
beforeEach(function(){
module("retail.navigation-ui", "string-utils");
element = angular.element("<ul calculate-height><li></li></ul>");
View gist:9120374
.button {
color: red;
background: blue;
@at-root #{&}--active {
color: green;
}
}
@dviedma
dviedma / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
$icons {
search: "\f001";
checkmark: "\f002";
cancel: "\f003";
refresh: "\f004";
}
@each $icon, $code in $icons {
.icon-#{$icon}:before {
content: $code;
View gist:7935736
.factory("navigation", ["$rootScope", "$state", "experienceService",
function navigation($rootScope, $state, experienceService) {
var views;
$rootScope.stateParams = {};
experienceService.getAsync({})
.then(function(experience) {
console.log("experience: ",experience);
View jquery.plugin.boilerplate.js
(function($){
// private methods
var _<#privateMethodName#> = function(){};
// public methods
var methods = {
init: function(options){
if (this.hasInitialized){ return; }
You can’t perform that action at this time.