Skip to content

Instantly share code, notes, and snippets.

@gastonambrogi
gastonambrogi / shimmer.html
Created December 20, 2016 11:50
Shimmer CSS - Shimmer effect
<h1 class="shimmer">Some Shimmer Text</h1>
<style>
@import url('http://fonts.googleapis.com/css?family=Alegreya+Sans:300');
body{
background: #000;
}
.shimmer{
/* styling stuff */
font-family:"Alegreya Sans";
@Komsomol
Komsomol / gist:69ddfe298d3e0595c501e58d90cc3d1a
Created April 15, 2016 14:13
Setup XCode FileMerge as MergeTool for Git
// Tell terminal where FileMerge lives.
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
// Configure git to use FileMerge
git config --global merge.tool opendiff
// Run mergetool
git mergetool
@glombard
glombard / build-robolectric.gradle
Created October 7, 2015 02:50 — forked from kotucz/build-robolectric.gradle
Robolectric runtime dependencies downloader
/**
* Module that includes this will be configured to use offline dependencies for Robolectric
* This downloads robolectric dependencies once into the root project
*/
def robolectricDependenciesFolder = rootProject.buildDir.path + "/robolectric-dependencies"
// configuration that resolves Robolectric runtime dependencies
configurations.create('robolectricRuntime')
@catrider
catrider / update
Last active August 29, 2015 14:16
Git server-side 'update' hook to reject changes to 'release' branches if the changes contain one or more commits present on the 'develop' branch
#!/bin/bash
# --- Command line
refname="$1"
oldrev="$2"
newrev="$3"
$(echo $refname | grep -q /release/)
on_release_branch=$?
if [ $on_release_branch -eq 0 ] && [ "$oldrev" != "0000000000000000000000000000000000000000" ]; then
@n3dst4
n3dst4 / ConEmu Git Bash.md
Last active October 20, 2024 23:59
My ConEmu / Cmder git bash task config
  1. Open Conemu

  2. Open Settings -> Tasks or go to new tab button -> Setup tasks.

  3. Click + to add a new task

  4. Enter the name as Git Bash or whatever you like

  5. Task parameters:

     /icon "C:\Program Files (x86)\Git\etc\git.ico" /dir "C:\_git"
    
  6. Command:

@txomon
txomon / C-kernel-codestyle-eclipse.xml
Created January 13, 2014 10:01
This is a configuration file for eclipse to make C code follow as much as possible Linux Codystyle
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="1">
<profile kind="CodeFormatterProfile" name="Linux Kernel" version="1">
<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/>
<setting id="org.eclipse.cdt.core.formatter.insert_new_line_in_empty_block" value="insert"/>
<setting id="org.eclipse.cdt.core.formatter.lineSplit" value="80"/>
<setting id="org.eclipse.cdt.core.formatter.alignment_for_member_access" value="0"/>
<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_base_types" value="do not insert"/>
<setting id="org.eclipse.cdt.core.formatter.keep_else_statement_on_same_line" value="false"/>
@itsalif
itsalif / SimpleXmlRequest.java
Last active February 25, 2019 16:03 — forked from ficusk/GsonRequest.java
Volley adapter for making XML Requests. It uses Simple-XML for serializing XML to Objects (http://simple.sourceforge.net/). Code is based of GsonRequest. Hope someone finds it useful.
import java.io.UnsupportedEncodingException;
import java.util.Map;
import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.core.Persister;
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
@arguile-
arguile- / gist:2510227
Created April 27, 2012 15:36
Basic Curl deploy file to Nexus
#!/bin/sh
SERVER="http://localhost:8081"
URL="$SERVER/nexus/service/local/artifact/maven/content"
REPO="sandbox"
USER="admin:admin123"
group=$1
artifact=$2