Skip to content

Instantly share code, notes, and snippets.

View Imater's full-sized avatar
🏠
Working from home

Вецель Евгений Imater

🏠
Working from home
View GitHub Profile
$scope.user = {
email: undefined
password: undefined
before_clear_button_email: undefined
pass_type: 'password'
captchaInputText: undefined
}
https://github.com/polarmobile/coffeescript-style-guide
@Imater
Imater / gEkoc.markdown
Created August 8, 2014 15:32
A Pen by John.
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"
.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;
}
@Imater
Imater / Asset.coffee
Created August 13, 2014 06:04
ValidationDirective
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>
<!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">
@Imater
Imater / waterfall.go
Created August 25, 2014 10:02
waterfall in go
package main
import (
"fmt"
"time"
"strconv"
)
func getFio () chan int {
c := make(chan int)
@Imater
Imater / each.go
Created August 25, 2014 10:20
Parallel search each user in go
package main
import (
"fmt"
"time"
"strconv"
)
func getIdByFio (fio string) chan int {
c := make(chan int)
@Imater
Imater / concurrent.go
Created August 25, 2014 15:25
timer with select case
package main
import "time"
import "fmt"
func main() {
doneChan := make(chan bool)
go func() {
time.Sleep(time.Second * 20)