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
<link rel="import" href="../core-input/core-input.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<?import javafx.scene.*?> | |
<!-- | |
The use of 'fx:root' and 'type="Node"' below is the 'magic' | |
that allows our custom component to inherit from, and therefore | |
customize, ANY JavaFX Node it wants to! | |
--> | |
<fx:root type="Node" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"/> |
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
export JAVA_HOME=/home/linuxbender/program/jdk1.8.0_20/ | |
export PATH=$PATH:/home/linuxbender/program/jdk1.8.0_20/bin |
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
#!/bin/bash | |
for file in $1/*.mp3 | |
do | |
echo "file=$file" | |
mp3splt -f 0.10 5000.0 $file | |
if test "$?" == "0"; then | |
# cp $file $file"_backup" | |
rm $file |
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
.topLink { | |
background: url('http://jquerymobile.com/demos/1.2.0/docs/toolbars/glyphish-icons/88-beermug.png') no-repeat; | |
position:fixed; | |
width: 30px; | |
height: 30px; | |
bottom:30px; | |
right:20px; | |
} |
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
// | |
// FuncDemos | |
// | |
// Extensens.cs - 06.12.2012 | |
// | |
// Author: glenn | |
using System; | |
using System.Net; |
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
using System.IO; | |
using System.Web; | |
using System.Web.Hosting; | |
using dotless.Core.Input; | |
namespace theForce.App_Start | |
{ | |
public class LessImportResolver : IPathResolver | |
{ | |
private string _currentFileDirectory; |
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
foo.slice(0, foo.length - (foo.length - baa.length)) |
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
<!--<rewrite> | |
<rules> | |
<rule name="Redirect to HTTPS" enabled="true" stopProcessing="true"> | |
<match url="^home" ignoreCase="true" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="true"> | |
<add input="{HTTPS}" pattern="off" /> | |
<add input="{HTTP_HOST}" pattern="([^/:]*?):[^/]*?" /> | |
</conditions> | |
<action type="Redirect" url="https://{C:1}:44300/{REQUEST_URI}" /> | |
</rule> |
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
[TestMethod] | |
public void Description_Should_Be_Required() | |
{ | |
Expression<Func<MenuCategoryBusinessObject, object>> expression = | |
o => o.Description; | |
var me = expression.Body as MemberExpression; | |
var att = (RequiredAttribute[])me.Member | |
.GetCustomAttributes(typeof(RequiredAttribute), false); | |
att.Length.ShouldEqual(1); | |
} |
NewerOlder