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
$scope.user = { | |
email: undefined | |
password: undefined | |
before_clear_button_email: undefined | |
pass_type: 'password' | |
captchaInputText: undefined | |
} |
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
https://github.com/polarmobile/coffeescript-style-guide |
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
SampleData = [ | |
title: 'Альбом' | |
photos: [ | |
url: "/samples/2014-06-25 14.54.01.png" | |
, | |
url: "/samples/2014-06-26 12.27.33.jpg" | |
, | |
url: "/samples/2014-06-28 20.49.37.jpg" | |
, | |
url: "/samples/2014-07-01 12.42.57.jpg" |
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
.animate_background(@time: 500ms) { | |
-webkit-transition: background-color @time linear; | |
-moz-transition: background-color @time linear; | |
-o-transition: background-color @time linear; | |
-ms-transition: background-color @time linear; | |
transition: background-color @time linear; | |
} |
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
blurFocusDirective = (validationConfig)-> | |
restrict: "A" | |
require: "?ngModel" | |
link: ($scope, elm, attr, ctrl) -> | |
template = $(''' | |
<div class="validate-message"> | |
<div class="arrow_box"> | |
<span class="message"></span> | |
</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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://jashkenas.github.io/underscore/underscore-min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
package main | |
import ( | |
"fmt" | |
"time" | |
"strconv" | |
) | |
func getFio () chan int { | |
c := make(chan int) |
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
package main | |
import ( | |
"fmt" | |
"time" | |
"strconv" | |
) | |
func getIdByFio (fio string) chan int { | |
c := make(chan int) |
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
package main | |
import "time" | |
import "fmt" | |
func main() { | |
doneChan := make(chan bool) | |
go func() { | |
time.Sleep(time.Second * 20) |
OlderNewer