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
/** | |
* iPhone mixin | |
* example: | |
* +iphone(all, landscape) | |
* body | |
* display none | |
*/ | |
iphone($version = all, $orientation = all) | |
$orientation == all ? 'and' : 'and (orientation: ' + $orientation + ') and' | |
if $version == '4' or $version == '4S' or $version == 'all' |
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
ipad($version = all, $orientation = all) | |
$orientation == all ? 'and' : 'and (orientation: ' + $orientation + ') and' | |
if $version == mini or $version == 1 or $version == 2 or $version == all | |
$query = 'only screen and (min-device-width: 768px) and (max-device-width: 1024px) %s (-webkit-min-device-pixel-ratio: 1)' % $media-orientation | |
@media $query | |
{block} | |
if $version == 3 $version == 4 or $version == all | |
$query = 'only screen and (min-device-width: 768px) and (max-device-width: 1024px) %s (-webkit-min-device-pixel-ratio: 2)' % $media-orientation | |
@media $query | |
{block} |
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
/** | |
* Component days carousel | |
*/ | |
import moment from 'moment' | |
/** | |
* DaysCarousel class | |
*/ | |
class DaysCarousel { |
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 pickmeup from 'pickmeup' | |
import moment from 'moment' | |
const init = () => { | |
$(() => { | |
let today = new Date(), next3months = moment().add(3, 'months').toDate(); | |
let element = document.querySelector('.choose-date__datepickerbox'); | |
if (!element) { | |
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
mixin chooseDate(options) | |
+b.choose-date | |
+e.datepicker | |
input(type='text' placeholder='Pick a date') | |
+fontIcon({ name: 'calendar' }) | |
+e.datepickerbox |
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
mixin chooseDate(options) | |
+b.choose-date | |
+e.datepicker | |
input(type='text' placeholder='Pick a date') | |
+fontIcon({ name: 'calendar' }) |
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 PickMeUp | |
* @author Nazar Mokrynskyi <[email protected]> | |
* @author Stefan Petre <www.eyecon.ro> | |
* @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi | |
* @copyright Copyright (c) 2008-2009, Stefan Petre | |
* @license MIT License, see license.txt | |
*/ | |
$__border-radius = 0 | |
$__border-color = #e0e0e0; |
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
/** | |
* Сглаживание вызова операций | |
* | |
* @returns {{broker: {}, register: function, run: function}} | |
* @constructor | |
*/ | |
var OperatingCapacitor = function () { | |
var object; | |
object = { |
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
.idea | |
*.pyc | |
.DS_Store |
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 | |
cd ~/my/project/backend/ | |
source ~/.virtualenvs/myenv/bin/activate | |
PS1="\u@\h:\w\$ " | |
echo -ne "\033]0;Django Backend Server\007" | |
./manage.py runserver | |
read -p "Press any key..." |