#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.
<?php | |
$iso_array = array( | |
'ABW'=>'Aruba', | |
'AFG'=>'Afghanistan', | |
'AGO'=>'Angola', | |
'AIA'=>'Anguilla', | |
'ALA'=>'Åland Islands', | |
'ALB'=>'Albania', | |
'AND'=>'Andorra', | |
'ARE'=>'United Arab Emirates', |
project.environment.name=local | |
project.name=${phing.project.name} | |
dir.build_xml=${project.basedir} | |
project.host.default=${project.environment.name}.${project.name}.mydomain.com | |
dir.project=${dir.build_xml}/../../.. |
/*jslint continue:true*/ | |
/** | |
* Adapted from {@link http://www.bulgaria-web-developers.com/projects/javascript/serialize/} | |
* Changes: | |
* Ensures proper URL encoding of name as well as value | |
* Preserves element order | |
* XHTML and JSLint-friendly | |
* Disallows disabled form elements and reset buttons as per HTML4 [successful controls]{@link http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2} | |
* (as used in jQuery). Note: This does not serialize <object> | |
* elements (even those without a declare attribute) or |
using System; | |
using MonoTouch.UIKit; | |
namespace System | |
{ | |
public static class ExtensionMethods | |
{ | |
public static UIColor ToUIColor(this string hexString) | |
{ | |
hexString = hexString.Replace("#", ""); |
public static void Fade (this UIView view, bool isIn, double duration = 0.3, Action onFinished = null) | |
{ | |
var minAlpha = (nfloat)0.0f; | |
var maxAlpha = (nfloat)1.0f; | |
view.Alpha = isIn ? minAlpha : maxAlpha; | |
view.Transform = CGAffineTransform.MakeIdentity (); | |
UIView.Animate (duration, 0, UIViewAnimationOptions.CurveEaseInOut, | |
() => { | |
view.Alpha = isIn ? maxAlpha : minAlpha; |
// | |
// Avatar.cs | |
// Created by Alexey Kinev on 26 Feb 2015. | |
// | |
// Licensed under The MIT License (MIT) | |
// http://opensource.org/licenses/MIT | |
// | |
// Simple rounded avatar class example for Xamarin.Forms. | |
// | |
using System; |
Instructions on how to setup a secured Jenkins CI.
$ wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
$ sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list$ .d/jenkins.list'
$ sudo apt-get update
$ sudo apt-get install jenkins
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | |
{ | |
var view = base.OnCreateView(inflater, container, savedInstanceState); | |
var recyclerView = view.FindViewById<RecyclerView>(Resource.Id.my_recycler_view); | |
if (recyclerView != null) | |
{ | |
recyclerView.HasFixedSize = true; | |
var layoutManager = new LinearLayoutManager(Activity); |