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 hexToRgb(hex) { | |
| hex = hex.replace('#', ''); | |
| let bigint = parseInt(hex, 16); | |
| if (hex.length === 3) { | |
| bigint = parseInt(hex.split('').map(char => char + char).join(''), 16); | |
| } | |
| 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
| server { | |
| server_name 127.128.128.127 somedomain.ru www.somedomain.ru; | |
| listen 80; | |
| root /var/www/public; | |
| index index.html index.htm; | |
| gzip on; | |
| gzip_disable "msie6"; |
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 sqlite3 | |
| databaseName = 'users.db' | |
| def initDb(): | |
| conn = sqlite3.connect(databaseName) | |
| try: | |
| c = conn.cursor() | |
| c.execute('''CREATE TABLE IF NOT EXISTS "main"."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
| //структура ответа по ничислениям | |
| { | |
| "month": "02", // месяц за который предоставляются данные | |
| "year": "2015",// год за который предоставляются данные | |
| "estimate": { // по смете | |
| "salary": { // оплатат труда без премий и прочих выплат, но учитывая ежемесчную премию (она вроде и так не выделяется отдельно) | |
| "charge": 1000, // начислено | |
| "hold": 20, // удержано | |
| "returns": 20, // возвращено | |
| "paid": 80, // Оплачено |
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
| { | |
| "month": "02", // месяц за который предоставляются данные | |
| "year": "2015",// год за который предоставляются данные | |
| // Далее поля которые уже есть, но на текущий момент они не нужны особо. Можно исключить с целью ускорения работы сервиса | |
| // ------ | |
| "k_dismiss": 7.32, // коэф текучести кадров в % | |
| "aup_salary": 15000000, // сумма зарплат АУП всех сотрудников в этом месяце | |
| "aup_bonus":3000000, //суммапремий АУП в этом месяце | |
| "aup_tax": 200000, // сумма налогов АУП за месяц |
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 thousands_sep (value) { | |
| return (value||0).toString().replace(/\B(?=(\d{3})+(?!\d))/g, " "); | |
| } | |
| function mln_to_text (value){ | |
| return thousands_sep(((parseFloat(value)||0)/1000000).toFixed(3)) + ' млн ₽' | |
| } | |
| function ths_to_text (value){ | |
| return thousands_sep(((parseFloat(value)||0)/1000).toFixed(3)) + ' тыс ₽' |
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
| { | |
| address: "Олег площадь", // адрес | |
| delay: 42, //отставание | |
| finance: { | |
| acts: 11.7 // заактировано в млн р | |
| budget: 73.1// бюджет объкта в млн р | |
| done: 5.5, // выпонено работ на сумму | |
| payed: 71.5 // оплачено в млн р | |
| plan: 50 // заключено контрактов на сумму в млн р | |
| }, |
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
| @font-face {font-family: 'PT Sans'; | |
| src: asset_url('pts55f_w.eot'); | |
| src: local('PT Sans'), asset_url('PTS55F_W.eot?#iefix') format('embedded-opentype'), asset_url('PTS55F_W.woff') format('woff'),asset_url('PTS55F_W.ttf') format('truetype'), asset_url('PTS55F_W.svg#PTSans-Regular') format('svg');} | |
| @font-face {font-family: 'PT Sans'; | |
| font-style: italic; | |
| src: asset_url('pts56f_w.eot'); | |
| src: local('PT Sans Italic'), asset_url('PTS56F_W.eot?#iefix') format('embedded-opentype'), asset_url('PTS56F_W.woff') format('woff'),asset_url('PTS56F_W.ttf') format('truetype'), asset_url('PTS56F_W.svg#PTSans-Italic') format('svg');} | |
| @font-face {font-family: 'PT Sans'; |
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
| Highcharts.theme = { | |
| colors: ['#f17e30', '#cccccf', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', | |
| '#FF9655', '#FFF263', '#6AF9C4'], | |
| colors: ['#f47920', '#cccccf', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', | |
| '#FF9655', '#FFF263', '#6AF9C4'], | |
| chart: { | |
| backgroundColor: 'transparent' | |
| }, | |
| credits: { | |
| enabled: false |
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
| .content style='background-color:#f5f5f6; width: 725px; height:1000px' | |
| #chart1 style='width:680px; height: 375px;' | |
| #centerText style="position:absolute; left:0px; top:0px;" | |
| #chart2 style='width:680px; height: 235px; margin-top:10px' | |
| javascript: | |
| $(document).ready(function () { |
NewerOlder