Skip to content

Instantly share code, notes, and snippets.

((global, $) ->
'use strict'
$(() ->
initialized = { '#vk-comments': false, '#disqus_thread': false }
initComments = (type) ->
return if initialized[type]
pageUrl = 'page_url'
(function(global, $) {
'use strict';
$(function() {
var $tabToggler, initComments, initialized;
initialized = {
'#vk-comments': false,
'#disqus_thread': false
};
@harentius
harentius / Backups.sh
Last active February 10, 2018 20:10
Backups
#!/bin/bash
# Config
target_dir="/home/backupper/backup/"
target_sync_dir="/home/backupper/Dropbox/"
folkprog_assets_base_dir="/home/deploy/projects/folkprog.net/web/assets/"
deploy_others_project_dir="/home/deploy-others/projects/"
nginx_config_dir="/etc/nginx/"
dbs=("folkprog" "mysoul" "gulak" "harry-l")
keep_files_days=60
version: 2
jobs:
build:
working_directory: ~/attraction-wars-server
docker:
- image: circleci/node:10.0.0
steps:
- checkout
- run:
name: install-npm
import { get, set } from 'lodash';
const remapData = (
from: {[key: string]: any},
remapConfig: { [key: string]: string},
to: {} = {},
) => {
Object.entries(remapConfig).forEach(([fromPath, toPath]) => {
const value = get(from, fromPath, undefined);