This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
if [ $# -eq 0 ] ; then | |
echo "Usage: $0 ICON_FILE PROJECT_DIR" | |
exit 0 | |
fi | |
ICON="$1" | |
PROJECT="$2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder