Skip to content

Instantly share code, notes, and snippets.

View nilsFK's full-sized avatar
🏠
Working from home

Nils F. Karlsson nilsFK

🏠
Working from home
View GitHub Profile
@nilsFK
nilsFK / Preferences.sublime-settings
Last active August 29, 2015 14:18
Sublime 3 user preferences
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"default_line_ending" : "unix",
"font_options": "subpixel_antialias",
"font_size": 14,
"gutter" : true,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
@hmbilal
hmbilal / README.md
Last active June 18, 2019 15:05
Long polling service in AngularJS

Then in your controller, inject $polling and start polling like this.

General use

$polling.startPolling({name_of_this_polling}, {url_to_fetch_data_from}, {time_in_milli_seconds}, {callback});

Example,

$polling.startPolling('fetchNotifications', 'http://localserver.local/fetch/notifications', 10000, $scope.processData);

# -*- coding: utf-8 -*-
"""
Flask-Login example
===================
This is a small application that provides a trivial demonstration of
Flask-Login, including remember me functionality.
:copyright: (C) 2011 by Matthew Frazier.
:license: MIT/X11, see LICENSE for more details.
"""
@benlinton
benlinton / multiple_mysql_versions_for_development.md
Last active June 6, 2025 19:32
Multiple MySQL Versions with Homebrew

Multiple MySQL Versions for Development

Options included below:

  • Using Docker docker-compose
  • Using Homebrew brew

Using Docker (recommended)

This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew any longer. Instead consider adding a barebones docker-compose.yml for each project and run docker-compose up to start each project's mysql service.