A Pen by Alexander Belov on CodePen.
This file contains hidden or 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
| .layer | |
| .button.block1 | |
| .wrapper | |
| .line.first | |
| .line.second | |
| .line.third | |
| .button.block2 | |
| .wrapper | |
| .line.first | |
| .line.second |
This file contains hidden or 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
| #button.block | |
| .wrapper | |
| .line.first | |
| .line.second | |
| .line.third |
This file contains hidden or 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
| .block | |
| .wrapper | |
| .line.first | |
| .line.second | |
| .line.third |
This file contains hidden or 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
| <ResourceDictionary | |
| x:Class="MyStyle.WindowStyle" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:CustomEase="clr-namespace:CustomEasingFunction" | |
| xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"> | |
| <SolidColorBrush x:Key="TitleBarBackgroundBrush" Color="#99FFFFFF" /> | |
| <SolidColorBrush x:Key="WindowBorderBrush" Color="#FFF" /> | |
| <SolidColorBrush x:Key="WindowBorderBrushInactive" Color="#777" /> |
This file contains hidden or 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 express = require('express'); | |
| var app = express(); | |
| var http = require('http').Server(app); | |
| var socket_io = require('socket.io'); | |
| var io = socket_io(http); | |
| var users = require('./users'); | |
| var logger = require('./logger'); |
This file contains hidden or 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 ru.twosphere.android.misisbooks; | |
| import org.json.JSONArray; | |
| import org.json.JSONException; | |
| import org.json.JSONObject; | |
| import java.io.Serializable; | |
| import java.util.ArrayList; | |
| /** |
This file contains hidden or 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 loadUsers(userIds, load, done) { | |
| var completed = 0; | |
| var users = []; | |
| userIds.forEach(function(id, index) { | |
| load(id, function(user) { | |
| users[index] = user; | |
| if (++completed === userIds.length) | |
| return done(users); | |
| }) | |
| }) |
This file contains hidden or 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 loadUsers(userIds, load, done) { | |
| var users = []; | |
| var relatives = {}; | |
| var callbackInvokedNumber = 0; | |
| for (var i = 0; i < userIds.length; i++) { | |
| relatives['u' + userIds[i]] = i; | |
| load(userIds[i], function(user) { | |
| callbackInvokedNumber++; | |
| if (!user) { | |
| return; |
This file contains hidden or 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
| module.exports = function map(arr, fn) { | |
| return arr.reduce(function(acc, item, index, arr) { | |
| return acc.concat(fn(item, index, arr)); | |
| }, []); | |
| }; |