Skip to content

Instantly share code, notes, and snippets.

View claudiug's full-sized avatar
💜
I eat stickers all the time, dude.

Klaus Heissler claudiug

💜
I eat stickers all the time, dude.
  • cto@relatico
  • Berlin
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
int[] s = new int[]{5,4,3,2,2,1, 55, 34,12, 4,66,98, 32, 67,15};
System.out.println(Arrays.toString(s));
//selectionSort(s);
//insertionSort(s);
{
"color_scheme": "Packages/IR_Black.tmbundle/Themes/IR_Black.tmTheme",
"font_face": "Monaco",
"font_size": 12,
"highlight_line": true,
"caret_style": "phase",
"auto_indent": true,
"draw_indent_guides": true,
"line_padding_bottom": 1,
"line_padding_top": 1,
@claudiug
claudiug / gist:8422412
Created January 14, 2014 17:40
sublime 3 settings
{
"auto_indent": true,
"bold_folder_labels": true,
"caret_style": "phase",
"cmd":
[
"rvm-auto-ruby",
"$file"
],
"color_scheme": "Packages/IR_Black.tmTheme",
{
"auto_indent": true,
"bold_folder_labels": true,
"ensure_newline_at_eof_on_save": true,
"caret_style": "phase",
"cmd":
[
"rvm-auto-ruby",
"$file"
],
{
"auto_indent": true,
"bold_folder_labels": true,
"caret_style": "phase",
"cmd":
[
"rvm-auto-ruby",
"$file"
],
"color_scheme": "Packages/Solarized Color Scheme/Solarized (light).tmTheme",
#!/usr/bin/env bash
function generate_tags {
(ctags -R -f .tags 2> /dev/null &)
}
function generate_gemtags {
(bundle show --paths | xargs ctags -R -f .gemtags 2> /dev/null &)
}
class PostsController < ApplicationController
before_action :load_post, only: [:edit, :show, :update, :destroy]
def index
load_posts
end
def new
build_post
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: sqlite3
pool: 5
timeout: 5000