Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

gyurisc gyurisc

🏠
Working from home
View GitHub Profile
View .bash_profile
# Add the alias below to ~/.bash_profile on a Mac
# Save the file and run: source ~/.bash_profile
# ASP.NET and Visual Studio Code on OS X
source dnvm.sh
export MONO_MANAGED_WATCHER=disabled
alias code='open $@ -a "Visual Studio Code"'
View Protobuf_CyclicIssue.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ProtoBuf;
namespace TestProtoBufSerialization
@gyurisc
gyurisc / flat-colors.css
Created Nov 28, 2013
Flat UI Color and Background Color style definitions: -turquoise -green-sea -emerald -nephritis -petermann-river -belize-hole -amethyst -wisteria -wet-asphalt -midnight-blue -sun-flower -orange -carrot -pumpkin -alizarin -pomegranate -clouds -silver -concerte -asbestos
View flat-colors.css
/* Flat Colors */
/* Greens */
.color-turquoise
{
color: turquoise;
}
.color-green-sea
{
@gyurisc
gyurisc / github.js
Created Apr 19, 2018
Simple React.js example
View github.js
// to run this use: https://jscomplete.com/repl
import React from 'react';
import { render } from 'react-dom';
const Card = (props) => {
return (
<div style={{margin: '1em'}}>
<img width="75" src={props.avatar_url} />
<div style={{display: 'inline-block', marginLeft: 10}}>
<div style={{fontSize: '1.25em', fontWieght: 'bold'}}>
@gyurisc
gyurisc / detect_barcode.py
Created Nov 20, 2015
Detecting Barcodes in Images with Python and OpenCV
View detect_barcode.py
# Detecting Barcodes in Images with Python and OpenCV
# OpenCV 3.0
# http://www.pyimagesearch.com/2014/11/24/detecting-barcodes-images-python-opencv/
import numpy as np
import argparse
import cv2
ap = argparse.ArgumentParser()
ap.add_argument("-i","--image", required = True, help="path to image file")
@gyurisc
gyurisc / PDFExtractor.cs
Last active Jul 26, 2020
Extracting attachments from a PDF file and write it out to a file
View PDFExtractor.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iTextSharp.text.pdf;
namespace PDFExtract
{
public class PDFExtractor
{
You can’t perform that action at this time.