Skip to content

Instantly share code, notes, and snippets.

@mamu7211
mamu7211 / pom-second-folder.xml
Last active December 24, 2015 05:19
Add second source folder to eclipse for maven projects.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals><goal>add-source</goal></goals>
<configuration>
<sources>
<source>src/main/generated</source>
@mamu7211
mamu7211 / pom-maven-compiler-plugin.xml
Last active December 24, 2015 05:19
Maven compiler plugin
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
@mamu7211
mamu7211 / .gitignore
Created October 20, 2015 03:54 — forked from adamgit/.gitignore
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
@mamu7211
mamu7211 / xcode-runscript.sh
Created October 20, 2015 04:24
Script to deploy a framework in Build Phase
set -e
export FRAMEWORK_LOCN="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework"
# Create the path to the real Headers die
mkdir -p "${FRAMEWORK_LOCN}/Versions/A/Headers"
# Create the required symlinks
/bin/ln -sfh A "${FRAMEWORK_LOCN}/Versions/Current"
/bin/ln -sfh Versions/Current/Headers "${FRAMEWORK_LOCN}/Headers"
@mamu7211
mamu7211 / agnoster.zsh-theme
Created November 12, 2015 04:56
Agnoster with a Linebreak in the Prompt
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@mamu7211
mamu7211 / .vimrc
Last active July 10, 2018 19:00
My .vimrc File
set number
set tabstop=4
set shiftwidth=4
set expandtab
syntax on
au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
au BufNewFile,BufFilePre,BufRead *.gradle set filetype=groovy
@mamu7211
mamu7211 / arduino-timer.c
Last active January 29, 2016 10:49
Arduino + Servo = Timer
/*
Arduino + Servo = Timer
Triggers a servo on pin 9 to 'display' the elapsed time.
Sketch Created by Martin Murrer, 2016, http://seventy2eleven.de
*/
#include <Servo.h>
#define DEBUG
@mamu7211
mamu7211 / wordpress-custom-css.css
Last active January 30, 2016 16:18
Wordpress Custom CSS
@import "https://fonts.googleapis.com/css?family=Sacramento";
/* changes 'site-title' class to use font 'Sacramento' */
.site-title {
font-family: 'Sacramento', cursive;
}
/* removes header from my 'home' page */
.page-id-28 h1 {
display: none;
@mamu7211
mamu7211 / wordpress-custom-css-placeholder.css
Created January 30, 2016 16:22
Wordpress Custom CSS Placeholder
/*
Welcome to Custom CSS!
To learn how this works, see http://wp.me/PEmnE-Bt
*/
@mamu7211
mamu7211 / w2m.cs
Last active February 1, 2016 06:53
VSTO Prototype for Word to MarkDown conversion.
public void Convert(/* .. */)
{
Word.Paragraphs paragraphs = App.ActiveDocument.Paragraphs;
var markdown = new StringBuilder();
var prefix = new Dictionary<Word.WdOutlineLevel, String>();
var suffix = new Dictionary<Word.WdOutlineLevel, String>();
var lineBreak = "";
// ...