Skip to content

Instantly share code, notes, and snippets.

@edfialk
edfialk / Policy.vue
Last active August 27, 2019 10:36
Using Content Tools in vue
/*
* A page where users ("agents") can edit text on a page template that is filled with model data when displayed for guests.
* Uses content tools library: http://getcontenttools.com/
* Agents can enter #variable# to display client model data inside text blocks (e.g. client name, etc.)
*/
<template>
<div>
<div ref="policy"
@lalkmim
lalkmim / codility_solutions.txt
Last active April 25, 2024 21:47
Codility Solutions in JavaScript
Lesson 1 - Iterations
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/
Lesson 2 - Arrays
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/
Lesson 3 - Time Complexity
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@sstur
sstur / backup-databases.cmd
Last active February 15, 2019 13:19
MySQL and MS SQL backup scripts for Windows
@echo off
cd "%~dp0"
backup-mysql.cmd
backup-mssql.cmd
@dnfehren
dnfehren / postgres_install.sh
Created July 31, 2012 16:53
postgres install instructions, not really a shell script
#get rid of anything from a mis-installed version
sudo apt-get --purge remove postgres*
sudo rm -rf /var/lib/postgresql
sudo deluser -remove-all-files postgres
#install the packages
sudo apt-get install postgresql-9.1
sudo apt-get install pgadmin3 phppgadmin
#shutdown postgres database server