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 | |
| sudo echo -e "wireless-power off" >>/etc/network/interfaces | |
| sudo echo -e "options 8192cu rtw_power_mgnt=0" >>/etc/modprobe.d/8192cu.conf | |
| sudo echo -e "options 8188eu rtw_power_mgnt=0" >>/etc/modprobe.d/8188eu.conf |
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 "ViewController.h" | |
| #import <netinet/in.h> | |
| #import <sys/socket.h> | |
| #import <CFNetwork/CFSocketStream.h> | |
| #include <arpa/inet.h> | |
| @interface ViewController() | |
| -(void)openSocket; |
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
| # http://www.mono-project.com/Compiling_Mono_on_OSX | |
| require 'formula' | |
| class Mono < Formula | |
| #url 'http://download.mono-project.com/sources/mono/mono-3.0.6.tar.bz2' | |
| #sha1 'e2187f80366fcd65c55a1ab946f8d3b39e81be77' | |
| url 'http://download.mono-project.com/sources/mono/mono-2.10.9.tar.bz2' | |
| sha1 '1a6e8c5a0c3d88d87982259aa04402e028a283de' | |
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
| Function Compare-VB($csFilePath) { | |
| $tempFile = [System.IO.Path]::GetTempPath() + [guid]::NewGuid() + ".vb" | |
| & 'C:\Program Files\InstantVB\InstantVB.exe' $csFilePath $tempFile | |
| WaitForFile($tempFile) | |
| & 'C:\Program Files (x86)\Beyond Compare 3\BCompare.exe' $csFilePath.Replace(".cs",".vb") $tempFile | |
| } | |
| Function WaitForFile($path) { | |
| while(!(Test-Path $path)) { | |
| Start-Sleep -s 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
| ### This file configures various client-side behaviors. | |
| ### | |
| ### The commented-out examples below are intended to demonstrate | |
| ### how to use this file. | |
| ### Section for authentication and authorization customizations. | |
| [auth] | |
| ### Set password stores used by Subversion. They should be | |
| ### delimited by spaces or commas. The order of values determines | |
| ### the order in which password stores are used. |
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
| sudo apt-get install -f default-jdk | |
| sudo apt-get install -f git-all | |
| \curl -L https://get.rvm.io | bash -s stable | |
| sudo apt-get --no-install-recommends install -y bash curl git patch bzip2 | |
| sudo apt-get --no-install-recommends install -y build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev | |
| sudo apt-get install -y nodejs |
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
| <UserControl x:Class="Telerik.Windows.Examples.ChartView.Annotations.MicrosoftChart" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" | |
| mc:Ignorable="d" | |
| d:DesignHeight="300" d:DesignWidth="400"> | |
| <UserControl.Resources> |
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
| <chart:RadCartesianChart Name="radChart1" Palette="Metro" VerticalAlignment="Stretch" Margin="0,0,0,10"> | |
| <chartView:BarSeries ItemsSource="{Binding MonthRevenues}" ValueBinding="Actual" CategoryBinding="Month" > | |
| <chartView:BarSeries.PointTemplate> | |
| <DataTemplate> | |
| <Rectangle Fill="{Binding Converter={StaticResource detailedInfoToBrushConverter}, ConverterParameter={StaticResource brushes}}"/> | |
| </DataTemplate> | |
| </chartView:BarSeries.PointTemplate> | |
| </chartView:BarSeries> | |
| <chartView:LineSeries ItemsSource="{Binding MonthRevenues}" ValueBinding="Target" CategoryBinding="Month" Stroke="{StaticResource ChartBrush2}" > | |
| <chartView:LineSeries.PointTemplate> |
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; | |
| using System.Collections.Generic; | |
| namespace SharkDice | |
| { | |
| public class NanoContainer | |
| { | |
| private readonly Dictionary<Type, object> _registeredDependencies = new Dictionary<Type, object>(); | |
| private readonly Dictionary<Type, Type> _registeredTypes = new Dictionary<Type, Type>(); |
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
| <chart:RadCartesianChart.Grid> | |
| <chartView:CartesianChartGrid MajorLinesVisibility="Y" StripLinesVisibility="Y"> | |
| <chartView:CartesianChartGrid.YStripeBrushes> | |
| <SolidColorBrush Color="#FFD7D7D7" Opacity="0.3" /> | |
| <SolidColorBrush Color="Transparent" /> | |
| </chartView:CartesianChartGrid.YStripeBrushes> | |
| </chartView:CartesianChartGrid> | |
| </chart:RadCartesianChart.Grid> |