Skip to content

Instantly share code, notes, and snippets.

@tonsV2
tonsV2 / .gitignore
Last active March 30, 2023 10:56
DHIS2 Kubernetes Quick Start
.idea
# Docker vs VM
- light weight
- access to a bunch of images... docker hub
- fast
# Docker? It's really not that difficult
- Dockerfile
- Image
- Container
- Docker compose
class matrix {
//////////////////////////////////////////////////////////////////
// Class matrix:
//
// This is a 2 dimensional real matrix class. Objects of this
// type are instantiated as e.g.
//
// matrix A = matrix(3, 2);
//
// in which case, A is a matrix with 3 rows and 2 columns of
\documentclass[12pt]{article}
\usepackage{amsmath} % flere matematikkommandoer
\usepackage[utf8]{inputenc} % æøå
\usepackage[T1]{fontenc} % mere æøå
\usepackage[danish]{babel} % orddeling
\usepackage{verbatim} % så man kan skrive ren tekst
\usepackage[all]{xy} % den sidste (avancerede) formel i dokumentet
\usepackage{listings}
\lstset{
numbers=left
package com.snot.findawatertap;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.ActionBarActivity;
package com.snot.findawatertap;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.ActionBarActivity;
<activity android:name=".GroupPickerActivity">
<intent-filter>
<action android:name="android.intent.action.PICK" />
<data android:scheme="content" android:mimeType="com.android.contacts/groups" />
</intent-filter>
</activity>
#! /bin/sh
if [ $# -eq 0 ] ; then
echo "Usage: $0 ICON_FILE PROJECT_DIR"
exit 0
fi
ICON="$1"
PROJECT="$2"
package com.snot.bloatware;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.util.Log;
class DevicesController < ApplicationController
before_filter :authenticate_user!, :only => [:new, :create, :edit, :update, :destroy]
def update_registration_id
@device = Device.find_by_device_id(params[:device_id])
@device.registration_id = params[:registration_id]
@device.save
end