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
using Microsoft.Xna.Framework; | |
using System.Linq; | |
namespace Screens | |
{ | |
/// <summary> | |
/// This is a screen that can be added to the ScreenManager. Extend it and add components | |
/// to it in the Initialize() method. You can also override the Update() and Draw() method. | |
/// </summary> |
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
node-inspector & | |
coffee --nodejs --debug app.coffee & | |
google-chrome http://127.0.0.1:8080/debug?port=5858 & | |
google-chrome http://127.0.0.1:3000 & |
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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |
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
git config --global mergetool.p4merge.path /c/Program\ Files/Perforce/p4merge.exe |
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 static class XmlHelper | |
{ | |
public const string DefaultParseElementName = "@default"; | |
public static void ParseXml(XmlReader reader, Dictionary<string, Action> actions, string endElement = null) | |
{ | |
// If no end element was specified then just read until the end tag of our current element | |
if (string.IsNullOrEmpty(endElement)) | |
{ |
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
:: install Chocolatey | |
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
:: basics | |
choco install 7zip GoogleChrome vlc adobereader SublimeText3 putty | |
:: dev | |
choco install VisualStudio2013Premium -InstallArguments "/Features:'WebTools Win8SDK' |
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
# lib/tasks/db.rake | |
namespace :db do | |
desc "Dumps the database to db/APP_NAME.dump" | |
task :dump => :environment do | |
cmd = nil | |
with_config do |app, host, db, user| | |
cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
end | |
puts cmd |
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 static class Reflection | |
{ | |
public static ConstructorInfo GetDefaultConstructor(this Type type) | |
{ | |
return type.GetConstructor(Type.EmptyTypes); | |
} | |
public static T CreateInstance<T>(this Type type, params object[] args) where T : class | |
{ | |
return CreateInstance(type, args) as T; |
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
namespace Analogy | |
{ | |
/// <summary> | |
/// This example shows that a library that needs access to target .NET Standard 1.3 | |
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET | |
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library. | |
/// </summary>INetCoreApp10 | |
class Example1 | |
{ | |
public void Net45Application(INetFramework45 platform) |
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
<?xml version="1.0"?> | |
<profile name="Lulzbot TAZ 5 (0.5 nozzle)" version="2017-02-28 19:41:52" app="S3D-Software 3.1.1"> | |
<baseProfile>LulzBot TAZ 5 Dual Extruder (0.5mm nozzle) (modified)</baseProfile> | |
<printMaterial>ABS Red</printMaterial> | |
<printQuality>Medium</printQuality> | |
<printExtruders>Default</printExtruders> | |
<extruder name="Extruder"> | |
<toolheadNumber>0</toolheadNumber> | |
<diameter>0.5</diameter> | |
<autoWidth>1</autoWidth> |
OlderNewer