Skip to content

Instantly share code, notes, and snippets.

@haloless
haloless / fasterWsdlToJava.groovy
Created July 16, 2018 10:47 — forked from nilsmagnus/fasterWsdlToJava.groovy
Fast wsdl2java with gradle and many wsdl files.
buildscript {
repositories {
mavenCentral()
}
}
project.ext {
wsdlDir = file("wsdl")
generatedWsdlDir = file("build/generated-sources")
@haloless
haloless / sendmail.py
Created June 26, 2018 06:54
python for mail server with SSL
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import smtplib
from email.mime.text import MIMEText
from email.header import Header
mail_host="the host"
mail_port = 25
mail_user="the mail"
@haloless
haloless / LICENSE
Created June 14, 2018 13:41 — forked from justjkk/LICENSE
Parsing JSON with lex and yacc
The MIT License (MIT)
Copyright (c) 2015 J Kishore Kumar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@haloless
haloless / dummy-web-server.py
Created April 6, 2018 14:54 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
@haloless
haloless / c_cpp_properties.json
Created March 29, 2018 01:55
vscode c/cpp setting using cygwin
{
"configurations": [
{
"name": "Mac",
"includePath": [
"/usr/include",
"/usr/local/include",
"${workspaceRoot}"
],
"defines": [],
@haloless
haloless / SimConfig.py
Created July 9, 2017 09:53
Python read INI-style file
from __future__ import print_function
from ConfigParser import RawConfigParser
import io
# __metaclass__ = type
class SimConfig(RawConfigParser, object):

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@haloless
haloless / calc.py
Created May 15, 2017 03:45
Usage of ply parser
# -----------------------------------------------------------------------------
# calc.py
#
# A simple calculator with variables -- all in one file.
# -----------------------------------------------------------------------------
import math
import os