Skip to content

Instantly share code, notes, and snippets.


Aravinthan.K aravinthanpnk

Block or report user

Report or block aravinthanpnk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nrobinaubertin / app.component.ts
Created Jan 17, 2017
Exemple of ngb-date-parser-formatter implementation (ng-bootstrap)
View app.component.ts
import { NgbDatepickerConfig, NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
import { NgbDateFRParserFormatter } from "./ngb-date-fr-parser-formatter"
providers: [{provide: NgbDateParserFormatter, useClass: NgbDateFRParserFormatter}]
export class AppComponent {}
fideloper /
Last active Dec 18, 2018
instal mysql5.7 non-interactive on ubuntu 14.04
#!/usr/bin/env bash
# This is assumed to be run as root or with sudo
export DEBIAN_FRONTEND=noninteractive
# Import MySQL 5.7 Key
# gpg: key 5072E1F5: public key "MySQL Release Engineering <>" imported
apt-key adv --keyserver --recv-keys 5072E1F5
echo "deb trusty mysql-5.7" | tee -a /etc/apt/sources.list.d/mysql.list
ruario /
Last active Aug 28, 2019
How to enable HTML5 MP4 (H.264/AAC) video in Vivaldi for Linux, via an alternative FFMpeg library
PurpleBooth /
Last active Sep 21, 2019
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


* in bootstrap:
* import hbadapter.HibernateProxyTypeAdapter
* class BootStrap {
* def init = { servletContext ->
demisx /
Last active Aug 21, 2019
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes


branneman /
Last active Sep 20, 2019
Better local require() paths for Node.js

Better local require() paths for Node.js


When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions

tmichel / index.html
Created Nov 9, 2013
simple websocket example with golang
View index.html
<title>WebSocket demo</title>
<label for="numberfield">Number</label>
<input type="text" id="numberfield" placeholder="12"/><br />

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

You can’t perform that action at this time.