Skip to content

Instantly share code, notes, and snippets.

[
{
"secLiveStreaming": "N",
"chNum": 1,
"authCode": "NA",
"chRec": true,
"chCall": "WINS",
"chId": 238,
"secondaryChannelId": 0,
"chHd": false,
@freearhey
freearhey / Xcode.sublime-build
Created October 14, 2019 02:07
Sublime Text build settings to build and run Xcode project
{
"shell_cmd": "cd $folder && xcodebuild -configuration Debug && open build/Debug/*.app",
"selector": "source.swift"
}
@freearhey
freearhey / gh-pages-deploy.md
Created September 22, 2019 00:23 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@freearhey
freearhey / categories.json
Created January 24, 2019 09:01
YouTube Categories List
[
{
"id": "1",
"title": "Film & Animation",
},
{
"id": "2",
"title": "Autos & Vehicles",
},
{
@freearhey
freearhey / topics.json
Created January 16, 2019 06:13
YouTube channel's topics list
[
{
"id": "/m/04rlf",
"label": "Music"
},
{
"id": "/m/05fw6t",
"label": "Children's music"
},
{
@freearhey
freearhey / dependecies.json
Created April 22, 2017 18:24
Полный список зависимостей vue-loader
"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"
@freearhey
freearhey / Preferences.sublime-settings
Last active April 2, 2017 20:35
Настройки Sublime Text 3
{
"binary_file_patterns":
[
"node_modules/"
],
"color_scheme": "Packages/Material Theme/schemes/Facebook.tmTheme",
"font_options":
[
"subpixel_antialias"
],
@freearhey
freearhey / main.js
Created March 6, 2017 00:33
Пример с подключением компонента во Vue 2 через функцию render
var Vue = require('vue')
var hello = require('./components/hello.vue')
new Vue({
el: 'body',
render: function(createElement) {
return createElement(hello)
}
})
@freearhey
freearhey / gist:72c77e40015aab21e06ec6cbcfd7223f
Created January 29, 2017 22:52 — forked from realmyst/gist:1262561
Склонение числительных в javascript
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, ['найдена', 'найдено', 'найдены']);
@freearhey
freearhey / main.js
Created January 13, 2017 15:48
Добавление scss-файлов в проект
// Для работы так же необходимо установить соответствующие 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'
})