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
public enum WdtOscillatorCycles | |
{ | |
_16k = 0x00, | |
_32k, | |
_64k, | |
_128k, | |
_256k, | |
_512k, | |
_1024k, | |
_2048k |
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
public class EnumToStringUsingDescription : TypeConverter | |
{ | |
public override bool CanConvertFrom(ITypeDescriptorContext context, | |
Type sourceType) | |
{ | |
return (sourceType.Equals(typeof(Enum))); | |
} | |
public override bool CanConvertTo(ITypeDescriptorContext context, | |
Type destinationType) |
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
[TypeConverter(typeof(EnumToStringUsingDescription))] | |
public enum WdtOscillatorCyclesImproved | |
{ | |
[Description("16000 Cycles")] | |
_16k = 0x00, | |
[Description("32000 Cycles")] | |
_32k, | |
[Description("64000 Cycles")] | |
_64k, | |
[Description("128000 Cycles")] |
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
public partial class MappingEnumToComboboxesForm : Form | |
{ | |
public MappingEnumToComboboxesForm() | |
{ | |
InitializeComponent(); | |
//Setting the enums as the data sources of the comboboxes | |
comboBoxNormal.DataSource = | |
Enum.GetValues(typeof(WdtOscillatorCycles)); | |
comboBoxImproved.DataSource = | |
Enum.GetValues(typeof(WdtOscillatorCyclesImproved)); |
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
public class AdcAdapter | |
{ | |
private IAdcModel _model; | |
private IAdcView _view; | |
public AdcAdapter(IAdcView view, IAdcModel model) | |
{ | |
_model = model; | |
_view = view; | |
} |
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
require 'net/http' | |
#Reads the HTML page | |
fontAwesomeUri = URI('http://fortawesome.github.io/Font-Awesome/cheatsheet/') | |
htmlSourceArray = Net::HTTP.get(fontAwesomeUri).split(/\r?\n/) | |
outputArray = Array.new() | |
tempString = String.new() | |
#Extracts the lines containing the unicodes and the icon names | |
htmlSourceArray.each_with_index do |line,index| | |
line = line.strip |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>About</title> | |
<!--Include Twitter Boostrap CSS--> | |
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" | |
rel="stylesheet" | |
type="text/css"/> | |
<!--Include JQuery--> | |
<script type="text/javascript" |
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
import "dart:html"; | |
import "package:iskernel_html_tablesorter/html_tablesorter.dart"; | |
void main() | |
{ | |
TableSorter sorter = new TableSorter("#sortableTable"); | |
sorter.enableSorting(true); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>example</title> | |
</head> | |
<body> | |
<table border="1" id="sortableTable"> | |
<thead> |
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
<# | |
When you attempt to open, delete or rename a file or folder using Windows NT | |
Explorer, File Manager or a command prompt, you may receive one of the | |
following error messages: | |
<drive>:\<folder> is not accessible | |
The file or directory is corrupt and non-readable. | |
The file or directory is corrupt and non-readable. | |
The file or directory \<folder> is corrupt and unreadable. | |
#> | |
#The drive you want to check |
OlderNewer