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
require('dotenv').config(); | |
var Twitter = require('twitter'); | |
var http = require('http'); | |
var fs = require('fs'); | |
var url = require('url'); | |
// Указываем коды доступа к Twitter API | |
var client = new Twitter({ | |
consumer_key: process.env.CONSUMER_KEY, |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<?xml-stylesheet href="template.xsl" type="text/xsl" ?> | |
<collection /> |
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
var appId = UNSPLASH_APP_ID_HERE | |
// создаем новый экземпляр vue-router | |
var router = new VueRouter() | |
new Vue({ | |
el: '#app', | |
// подключаем router к vue | |
router, | |
data: { |
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
<template> | |
<div id="app"> | |
Привет, SASS! | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'app' | |
} |
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
// Для работы так же необходимо установить соответствующие webpack загрузчики | |
// npm install style-loader css-loader node-sass sass-loader --save-dev | |
var Vue = require('vue') | |
require('style!css!sass!./style.scss') | |
new Vue({ | |
el: '#app' | |
}) |
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 declOfNum(number, titles) { | |
cases = [2, 0, 1, 1, 1, 2]; | |
return titles[ (number%100>4 && number%100<20)? 2 : cases[(number%10<5)?number%10:5] ]; | |
} | |
use: | |
declOfNum(count, ['найдена', 'найдено', 'найдены']); |
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
var Vue = require('vue') | |
var hello = require('./components/hello.vue') | |
new Vue({ | |
el: 'body', | |
render: function(createElement) { | |
return createElement(hello) | |
} | |
}) |
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
Show hidden characters
{ | |
"binary_file_patterns": | |
[ | |
"node_modules/" | |
], | |
"color_scheme": "Packages/Material Theme/schemes/Facebook.tmTheme", | |
"font_options": | |
[ | |
"subpixel_antialias" | |
], |
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
"babel-core": "^6.18.2", | |
"babel-loader": "^6.2.7", | |
"babel-plugin-transform-runtime": "^6.15.0", | |
"babel-preset-es2015": "^6.18.0", | |
"css-loader": "^0.25.0", | |
"vue-html-loader": "^1.2.3", | |
"vue-style-loader": "^1.0.0" |
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
[ | |
{ | |
"id": "/m/04rlf", | |
"label": "Music" | |
}, | |
{ | |
"id": "/m/05fw6t", | |
"label": "Children's music" | |
}, | |
{ |
OlderNewer