Skip to content

Instantly share code, notes, and snippets.

@luongvo
luongvo / build.gradle
Created January 3, 2018 17:35
Aggregated Jacoco reports in a multi-project Gradle build
allprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
repositories {
jcenter()
}
jacoco {
toolVersion = '0.7.1.201405082137'
@reyawn
reyawn / vs-code-icon-names.json
Created October 28, 2016 13:45
Visual Studio Code icon names for shortcuts
[
"alert",
"arrow-down",
"arrow-left",
"arrow-right",
"arrow-small-down",
"arrow-small-left",
"arrow-small-right",
"arrow-small-up",
"arrow-up",
@darsain
darsain / svg_sprites.md
Last active February 19, 2025 07:08
How to use SVG sprites in img[src] and css backgrounds

To make this work in CSS:

background: url('images.svg#chart');

or img:

<img src="images.svg#chart">
@Hexodus
Hexodus / count_total_project_code_lines_in_sublime
Created September 8, 2013 17:06
Count total code lines in project using Sublime texteditor
// Go to menue:
// find->find in files
// Switch on reg_ex button
// Find:
^(.*)$
// Where:
c:\your_folder\,*.php,*.phtml,*.js,*.inc,*.html, -*/folder_to_exclude/*
// Then click on the find button
// Be careful to not click on Replace!!!
<ezstream>
<url>http://127.0.0.1:8042/test</url>
<sourcepassword>test</sourcepassword>
<sourceuser>test</sourceuser>
<format>MP3</format>
<filename>b.mp3</filename>
<stream_once>0</stream_once>
<svrinfoname>test</svrinfoname>
<svrinfourl>test</svrinfourl>
<svrinfogenre>test</svrinfogenre>
@dariocravero
dariocravero / README.md
Created October 20, 2012 05:25
Save files in Meteor

Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.

@zakuni
zakuni / random_document.js
Created March 11, 2012 08:28
Getting a random document from MongoDB collection
var count = db.collections.count()
var rand = function(){return Math.floor( Math.random() * count )}
db.collection.find().limit(-1).skip(rand()).next();
@tj
tj / app.js
Created December 17, 2011 23:15
express 3.x cookie session middleware example
var express = require('express')
, cookieSessions = require('./cookie-sessions');
var app = express();
app.use(express.cookieParser('manny is cool'));
app.use(cookieSessions('sid'));
app.get('/', function(req, res){
req.session.count = req.session.count || 0;
@alexdunae
alexdunae / fb-gallery-embed.html
Created September 24, 2011 17:05
Embedded Facebook Page Photo Gallery with jQuery