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
<div class="container"> | |
<div class="rectangle wrap-image"></div> | |
<div class="rectangle wrap-image"> | |
<img src="http://placekitten.com/g/700/500" /> | |
</div> | |
</div> |
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
// http://stackoverflow.com/questions/2631001/javascript-test-for-existence-of-nested-object-key | |
function checkNested(obj /*, level1, level2, ... levelN*/) { | |
var args = Array.prototype.slice.call(arguments), | |
obj = args.shift(); | |
for (var i = 0; i < args.length; i++) { | |
if (!obj || !obj.hasOwnProperty(args[i])) { | |
return false; | |
} |
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
Verifying that +slucas is my openname (Bitcoin username). https://onename.io/slucas |
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
- var list = {class:"testClass", ngModel:"testNgModel", item: "testItem", value: "testValue"} | |
mixin recursivList(list) | |
ul(class='#{list.class}') | |
li(ng-repeat='#{list.item} in #{list.ngModel}') {{ #{list.value} }} | |
block | |
mixin recursivList1(list) | |
ul(class='#{list.class}') | |
li(ng-repeat='#{list.item} in #{list.ngModel}', ng-bind=list.value) | |
block |
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
//- Ton yaml | |
newField: | |
id: "newField" | |
type: "text" | |
label: "Enter something" | |
required: false | |
//- ici tu as le système de mixins par type de champs | |
//- mais c'est un peu redondant et en plus pas possible |
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
li(ng-repeat='item in #{list.ngRepeatItems}') | |
- if (list.uiSref) { | |
a(ui-sref=list.uiSref) | |
- } | |
span( | |
tooltip-placement=list.tooltip.position, | |
tooltip=list.tooltip.value, | |
ng-bind=ngBind)=ngRepeatValue |
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
var hasRoleInCircle = function(circle, member) { | |
circle = circle || ScopeService.getCurrentCircle(); | |
member = member || ScopeService.getMemberCur(); | |
if( !circle || !member){ | |
return false; | |
} |
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
# Necessary packages | |
"grunt": "^0.4.5", | |
"grunt-bower-install-simple": "^0.9.3", | |
"grunt-bump": "0.0.15", | |
"grunt-changelog": "^0.2.2", | |
"grunt-contrib-clean": "^0.6.0", | |
"grunt-contrib-concat": "^0.5.0", | |
"grunt-contrib-copy": "^0.5.0", |
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
@media (max-width:767px) { | |
#site-description { | |
display: none; | |
} | |
#secondary { | |
float: none !important; | |
} | |
#content { |
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
<?php | |
/** | |
* @file | |
* Documentation for Menu Attributes API. | |
*/ | |
/** | |
* Alter the list of menu item attributes. | |
* |
OlderNewer