Skip to content

Instantly share code, notes, and snippets.

View tigertv's full-sized avatar
👍
Welcome!

Max Vetrov tigertv

👍
Welcome!
View GitHub Profile
@tbtlr
tbtlr / get_barcode_from_image.js
Created June 1, 2010 19:33
Barcode recognition with JavaScript - Demo: http://bit.ly/djvUoy
/*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(){
var UPC_SET = {
"3211": '0',
"2221": '1',
"2122": '2',
@pzurek
pzurek / Twelve_Go_Best_Practices.md
Last active August 20, 2024 09:07
Twelve Go Best Practices
@rxaviers
rxaviers / gist:7360908
Last active November 18, 2024 10:08
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:

THIS DOCUMENT

IS OUT OF

DATE

C++ Coding Standards Part 0: Automated Code Analysis

Automated analysis is the main advantage to working with a modern statically typed compiled language like C++. Code analysis tools can inform us when we have implemented an operator overload with a non-canonical form, when we should have made a method const, or when the scope of a variable can be reduced.

@kevinkreiser
kevinkreiser / logging.hpp
Last active April 17, 2024 13:25
Thread-safe logging singleton c++11
#ifndef __LOGGING_HPP__
#define __LOGGING_HPP__
/*
Test this with something like:
g++ -std=c++11 -x c++ -pthread -DLOGGING_LEVEL_ALL -DTEST_LOGGING logging.hpp -o logging_test
./logging_test
*/
#include <string>
#EXTM3U
#EXTINF:-1,group-title="Movies on demand"
http://kewltv.net/
#EXTINF:-1,xmen1
http://www.deadlyblogger.com/NewRelease/xmen1.mp4
#EXTINF:-1,xmen2
http://www.deadlyblogger.com/NewRelease/xmen2.mp4
#EXTINF:-1,xmen3
http://www.deadlyblogger.com/NewRelease/xmen3.mp4
#EXTINF:-1,xmen origin
#EXTINF:-1,[COLOR green]» » GRUPO FILMES « «[/COLOR]
http://0.0.0.0:1234
#EXTINF:-1 group-title="FILMES",101 DALMATIONS
http://www.deadlyblogger.com/NewRelease/dal1.mp4
#EXTINF:-1 group-title="FILMES",A CHRISTMAS CAROL
http://www.deadlyblogger.com/NewRelease/acc2009.mp4
#EXTINF:-1 group-title="FILMES",A DISNEY CHRISTMAS GIFT
http://www.deadlyblogger.com/NewRelease/disneyc1.mp4
@laobubu
laobubu / ABOUT.md
Last active October 16, 2024 06:05
A very simple HTTP server in C, for Unix, using fork()

Pico HTTP Server in C

This is a very simple HTTP server for Unix, using fork(). It's very easy to use

How to use

  1. include header httpd.h
  2. write your route method, handling requests.
  3. call serve_forever("12913") to start serving on port 12913
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active November 16, 2024 11:48
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages