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
| Перенес в my-mans | |
| -- подключиться к postgres (утилита psql) | |
| psql -U postgres | |
| -- команды помощи | |
| help | |
| \h -- помощь по командам SQL | |
| \? -- помощь по командам psql |
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
| SELECT count(*) FROM my_table; | |
| -- больше способов | |
| -- https://habrahabr.ru/post/30046/ |
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
| -- 1 | |
| select column_name, data_type | |
| from information_schema.columns | |
| where table_name = 'users'; | |
| -- 2 | |
| SELECT | |
| column_name, data_type, character_maximum_length | |
| FROM |
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
| 1. | |
| -webkit-text-size-adjust: none; | |
| -ms-text-size-adjust: none; | |
| 2. Hack | |
| max-height: 99999px; |
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
| start = new Date().getTime(); | |
| for ( n = 0; n < maxCount; n++ ) { | |
| /* measuringFunction(); */ | |
| }; | |
| elapsed = new Date().getTime() - start; | |
| alert("Measured time: " + elapsed); |
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
| assert(условие, сообщение); | |
| assert(a == 1, 'Err, a not 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
| 'use strict'; | |
| var gulp = require('gulp'), | |
| concat = require('gulp-concat'), | |
| scss = require('gulp-sass'), | |
| uglify = require('gulp-uglify'), | |
| plumber = require('gulp-plumber'), | |
| ngAnnotate = require('gulp-ng-annotate'), | |
| sourcemaps = require('gulp-sourcemaps'), | |
| webserver = require('gulp-webserver'); |
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
| ; | |
| google.maps.event.addDomListener(window, 'load', init); | |
| function init() { | |
| // Basic options for a simple Google Map | |
| // For more options see: https://developers.google.com/maps/documentation/javascript/reference#MapOptions | |
| var mapOptions = { | |
| // How zoomed in you want the map to start at (always required) | |
| zoom: 15, |
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
| /* Styles for dialog window */ | |
| #small-dialog | |
| background: white | |
| padding: 20px 30px | |
| text-align: left | |
| max-width: 400px | |
| margin: 40px auto | |
| position: relative | |
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
| npm install rimraf -g | |
| rimraf node_modules | |
| // Delete folder with all includes | |
| rd /s/q path_to_folder | |
| rmdir /s/q path_to_folder |