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
//тесты для текущего(твоего) варианта директивы | |
describe('statsHeight', function() { | |
var $compile, | |
$rootScope, | |
$timeout; | |
beforeEach(function () { | |
angular.mock.module('gby.common'); | |
}); |
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
'use strict'; | |
angular | |
.module('portal', ['']) | |
.directive('portalIn', [function() { | |
return { | |
scope: { | |
key: '@', | |
portalContainer: '=' | |
}, |
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 fastDateFactory() { | |
var DAYS_IN_YEAR = 365; | |
var DAYS_IN_LEAP_YEAR = 366; | |
var DAYS_IN_4_YEARS = DAYS_IN_LEAP_YEAR + DAYS_IN_YEAR * 3; | |
var DAYS_IN_OTHER_FIRST_4_YEARS = DAYS_IN_YEAR * 4; | |
var DAYS_IN_FIRST_100_YEARS = DAYS_IN_4_YEARS * 25; | |
var DAYS_IN_NEXT_100_YEARS = DAYS_IN_OTHER_FIRST_4_YEARS + DAYS_IN_4_YEARS * 24; | |
var DAYS_IN_400_YEARS = DAYS_IN_FIRST_100_YEARS + DAYS_IN_NEXT_100_YEARS * 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
#!/bin/sh | |
# For RedHat and cousins: | |
# chkconfig: - 99 01 | |
# description: GitLab Runner | |
# processname: /usr/local/bin/gitlab-ci-multi-runner | |
### BEGIN INIT INFO | |
# Provides: /usr/local/bin/gitlab-ci-multi-runner | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog |
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
xcrun simctl delete unavailable |
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
brctl_showmacs () { | |
cat /sys/class/net/$1/brforward > /tmp/brforward ; | |
printf "port no\tmac addr\t\tis local?\tageing timer\n" ; | |
hexdump -v -e '5/1 "%02x:" /1 "%02x" /1 " %x" /1 " %x" 1/4 " %i" 1/4 "\n"' /tmp/brforward | awk '{ islocal = $3 ? "yes" : "no" ; printf "%3i\t%s\t%s\t\t%8.2f\n",$2,$1,islocal,$4/100 } ' ; | |
} |
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 FindProxyForURL(url, host) { | |
return "SOCKS 192.168.1.4:1080"; | |
} |
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
curl -H "Content-Type:application/json" -X POST http://localhost:5984/$DB/_view_cleanup | |
curl -H "Content-Type:application/json" -X POST https://localhost:5984/$DB/_compact | |
curl -H "Content-Type:application/json" -X POST https://localhost:5984/$DB/_compact |