A Pen by Daniel Pedro dos Santos Fernandes 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
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument( | |
'--potatoes', '-p', | |
nargs='*', | |
type=str, | |
required=True, | |
help='Type of potatoes that you like most' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body ng-app="myApp" ng-controller="myController"> | |
<div my-directive> | |
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
.red { | |
color : red !important; | |
} | |
.blue { | |
color : blue !important; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" /> | |
<meta charset=utf-8 /> | |
<title>Angular Tree</title> | |
</head> | |
<body ng-app="myApp" ng-controller="myController"> | |
<ul ng-tree="family"> | |
<li select="selected()">{{item.name}}</li> |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
//Variables | |
$default-font-color: red; | |
$default-width: 10px; | |
$title-font-color: blue; | |
//Mixins (functions) |
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'; | |
beforeEach(function() { | |
this.addMatchers({ | |
toEqualData: function(expected) { | |
this.message = function () { | |
var notText = this.isNot ? " not" : ""; | |
return "Expected " + JSON.stringify(this.actual) + notText + " to be equals that " + JSON.stringify(expected); | |
} | |
return JSON.stringify(this.actual) === JSON.stringify(expected); |
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
angular.module('myApp', []) | |
.controller('myCtrl', ['$scope', function($scope) { | |
$scope.MyProccessedData = ""; | |
}]) | |
.directive('myDirective', [function(){ | |
return function(scope, element, attrs) { | |
element.bind('keydown', function(event) { | |
scope.MyProccessedData = scope.$eval(attrs.ngModel); | |
}); | |
}; |
NewerOlder