#How to create a .file or .folder on Windows
There are several ways
- Create
file.txt - Rename to
.file., the last dot will be dropped, you'll have.file
Works the same with a file or a directory.
| <Server port=”-1” command=”SHUTDOWN”> |
| #!/bin/bash | |
| if [ "$1" == "" ]; then | |
| echo Usage: $0 pngfile | |
| exit 0; | |
| fi | |
| FILE=`basename $1 .png` | |
| if [ ! -e $FILE.png ]; then |
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <color name="white">#FFFFFF</color> | |
| <color name="ivory">#FFFFF0</color> | |
| <color name="light_yellow">#FFFFE0</color> | |
| <color name="yellow">#FFFF00</color> | |
| <color name="snow">#FFFAFA</color> | |
| <color name="floral_white">#FFFAF0</color> | |
| <color name="lemon_chiffon">#FFFACD</color> | |
| <color name="cornsilk">#FFF8DC</color> |
| package robotograph; | |
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Paint; | |
| import android.graphics.PorterDuff; | |
| import android.graphics.PorterDuffXfermode; | |
| import android.util.AttributeSet; |
| Typeface face = Typeface.createFromAsset(getAssets(), "yourfont.ttf"); |
To generate a pom.xml file just run gradle writeNewPom
If you want to generate it as pom.xml in the root of the project, replace writeTo("$buildDir/newpom.xml") with writeTo("pom.xml")
| /* | |
| * Copyright 2013 Evelio Tarazona Cáceres <evelio@evelio.info> | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| public class ListFragment extends Fragment { | |
| //DAO datasource; | |
| //List<Joke> values; | |
| public ListFragment(){} | |
| @Override | |
| public View onCreateView(LayoutInflater inflater, ViewGroup container, | |
| Bundle savedInstanceState) { | |
| View rootView = inflater.inflate(R.layout.test_fragment_list, container, false); |
| #!/bin/bash | |
| # Android 4.3+ changes app's internal directory permissions and you can not just pull your | |
| # databases to your computer, so I did this as a workaround to extract my databases. | |
| # I only use it for debug, use it under your responsability. | |
| package=$1 | |
| db_name=$2 | |
| path="/data/data/$package/" |