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 phase = scope.$root.$$phase; | |
if(phase == '$apply' || phase == '$digest') { | |
ngModel.$setViewValue(editor.getSession().getValue()); | |
} else { | |
scope.$apply(function(){ | |
ngModel.$setViewValue(editor.getSession().getValue()); | |
}); | |
} |
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
(function(){ | |
$("#button1").click(onClickButton1); | |
$("#button2").click(onClickButton2); | |
var time | |
function onClickButton1(){ | |
time = Date.now() | |
console.log(time) |
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
data-ng-class="{investor:'btn-entrar-investor', startup:'btn-entrar-startup', 'professional':'btn-entrar-professional'}[page.entity]" | |
data-ng-class="[page.btn_entrar]" | |
data-ng-class="{selected: $index==selectedIndex}" | |
data-ng-class="{$index==selectedIndex} ? 'selected' : ''" |
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
ng-class="{'block-value' : gasto.valor > valorDiario}" |
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
// wait until after $apply | |
$timeout(function(){ | |
console.log(scope.yourDirective); | |
}); |
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
┌───┐ | |
│ 3 │┌───┬───┐ | |
├───┤│ 3 │ 3 │ | |
│ 2 │└───┴───┘ | |
└───┘ | |
╔═══╗ | |
║ 3 ║╔═══╦═══╗ | |
╠═══╣║ 3 ║ 2 ║ | |
║ 3 ║╚═══╩═══╝ | |
╚═══╝ |
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
## adicionar deb http://security.ubuntu.com/ubuntu trusty-security main | |
# /etc/rc.local (Monta HD automático) | |
# mkdir -p /media/OS | |
# mount /dev/sda5 /media/OS & | |
# exit 0 | |
sudo apt-get update | |
sudo apt-get -y upgrade |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>io.github.lordviktor</groupId> | |
<artifactId>java-parent</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<packaging>pom</packaging> |
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
[submodule "java-parent"] | |
path = java-parent | |
url = git@gist.github.com:/bb301f403bbe939170a9.git |
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
grunt.registerTask('tag-revision', 'Tag the current build revision', function () { | |
grunt.task.requires('git-describe'); | |
grunt.file.write('public/version.json', JSON.stringify({ | |
version: grunt.config('pkg.version'), | |
revision: grunt.config('meta.revision'), | |
date: grunt.template.today() | |
})); | |
}); |
OlderNewer