bool
string
This file contains hidden or 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
| import android.content.Context; | |
| import android.database.SQLException; | |
| import android.database.sqlite.SQLiteDatabase; | |
| import android.util.Log; | |
| import com.cengalabs.dbusage.model.User; | |
| import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; | |
| import com.j256.ormlite.support.ConnectionSource; | |
| import com.j256.ormlite.table.TableUtils; |
working with docker in terminal
$(boot2docker shellinit)
searching image from remote
docker search IMAGE_NAME
pulling image from remote
This file contains hidden or 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
| import android.app.DatePickerDialog; | |
| import android.app.Dialog; | |
| import android.os.Bundle; | |
| import android.support.annotation.NonNull; | |
| import android.support.v4.app.DialogFragment; | |
| import java.util.Calendar; | |
| public class DatePickerFragment extends DialogFragment { |
This file contains hidden or 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
| # Dockerizing MongoDB: Dockerfile for building MongoDB images | |
| # Based on ubuntu:latest, installs MongoDB following the instructions from: | |
| # http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ | |
| # Build image: | |
| # docker build --tag dock/db . | |
| # Run container: | |
| # docker run -p HOST_PORT:27017 --name dock_mongo -d dock/db |
This file contains hidden or 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
| import android.graphics.Color; | |
| import android.os.Bundle; | |
| import android.support.v4.view.PagerAdapter; | |
| import android.support.v4.view.ViewPager; | |
| import android.support.v7.app.ActionBar; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.support.v7.widget.Toolbar; | |
| import android.util.Log; | |
| import android.view.Menu; |
This file contains hidden or 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
| <application | |
| android:icon=”@drawable/ic_launcher” | |
| android:label=”@string/app_name”> | |
| ... | |
| <!—- Facebook login --> | |
| <activity android:name=”com.facebook.LoginActivity” /> | |
| <meta-data | |
| android:name=”com.facebook.sdk.ApplicationId” |
This file contains hidden or 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 ical | |
| import "time" | |
| type Calendar struct { | |
| Prodid, Method string | |
| Events []Event | |
| } | |
| func (c Calendar) String() string { |
sudo visudo
go ALL=(ALL) NOPASSWD: ALL
This file contains hidden or 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 main | |
| import ( | |
| "os" | |
| "strings" | |
| "io/ioutil" | |
| ) | |
| func main() { | |
| files, _ := ioutil.ReadDir("./") |
OlderNewer