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
| { | |
| "metadata": { | |
| "title": "Counter" | |
| }, | |
| "state": { | |
| "count": 0 | |
| }, | |
| "debug": { | |
| "message": "debug counter", | |
| "params": { |
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
| import { useReducer, useEffect } from 'react'; | |
| import { useSwipeable, SwipeableHandlers, EventData } from 'react-swipeable'; | |
| function previous(length: number, current: number) { | |
| return (current - 1 + length) % length; | |
| } | |
| function next(length: number, current: number) { | |
| return (current + 1) % length; | |
| } |
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
| #!/bin/bash | |
| # Recursive file convertion windows-1251 --> utf-8 | |
| # Place this file in the root of your site, add execute permission and run | |
| # Converts *.php, *.html, *.css, *.js files. | |
| # To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command | |
| find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f | | |
| while read file | |
| do |
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
| apply plugin: 'com.android.application' | |
| apply plugin: 'kotlin-android' | |
| apply plugin: 'kotlin-android-extensions' | |
| buildscript { | |
| ext.kotlin_version = '1.2.0' | |
| repositories { |
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
| [vhod1] | |
| exten => s,1,Answer | |
| exten => s,n,Background(menuvhod/vhod1) | |
| exten => s,n,WaitExten(30) | |
| ; | |
| ;Первый вариант если заказчик и есть 1 заказ. | |
| ;Ваш заказ выполняется. для соединения с менеджером нажмите 0 или оставайтесь на линии. | |
| ;для соединения с исполнителем нажмите 1. | |
| ; | |
| exten => 0,1,Goto(from-internal,${MANAGER_PHONE},1) |
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
| import color from 'color'; | |
| import { Platform, Dimensions, PixelRatio } from 'react-native'; | |
| const deviceHeight = Dimensions.get('window').height; | |
| const deviceWidth = Dimensions.get('window').width; | |
| const platform = Platform.OS; | |
| const platformStyle = 'material'; | |
| export default { |
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
| 'use strict' | |
| const Command = use('Command') | |
| const Model = use('App/Model/Greet') | |
| class Greet extends Command { | |
| /** | |
| * signature defines the requirements and name | |
| * of command. |
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
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| init() { | |
| this._super(...arguments); | |
| let items = this.get('items'), id = 0; | |
| if (items.length > 0) { | |
| id = items.get('lastObject'); | |
| ++id; | |
| } |
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
| import Ember from 'ember'; | |
| const { computed: { alias } } = Ember; | |
| export default Ember.Component.extend({ | |
| classNameBindings: [ | |
| 'isActive' | |
| ], | |
| isActive: alias('data.isActive'), | |
| init() { | |
| this._super(); |
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
| import Ember from 'ember'; | |
| const { ObjectProxy, computed: { alias } } = Ember; | |
| export default Ember.Component.extend({ | |
| classNameBindings: [ | |
| 'isActive' | |
| ], | |
| isActive: alias('data.isActive'), | |
| init() { | |
| this._super(); |