Skip to content

Instantly share code, notes, and snippets.

View fdeitelhoff's full-sized avatar
🏠
Working from home

Fabian Deitelhoff fdeitelhoff

🏠
Working from home
View GitHub Profile
@fdeitelhoff
fdeitelhoff / testpackage.txt
Created September 9, 2018 16:16
Test-Skript für Boxstarter
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst adobereader
cinst googlechrome
cinst 7zip
@fdeitelhoff
fdeitelhoff / papers-learn-programming.md
Created January 18, 2017 23:13
Some Papers on "Learn to Program"
  1. Understanding the Syntax Barrier for Novices (http://doi.acm.org/10.1145/1999747.1999807)
  2. Usability Analysis of Visual Programming Environments (http://doi.acm.org/10.1006/jvlc.1996.0009)
  3. An investigation of factors related to self-efficacy for java programming among engineering students (http://www.tojet.net/articles/v8i1/813.pdf)
  4. The State of the Art in End-user Software Engineering (http://doi.acm.org/10.1145/1922649.1922658)
  5. How Do API Documentation and Static Typing Affect API Usability? (http://doi.acm.org/10.1145/2568225.2568299)
  6. The Programming Language Wars: Questions and Responsibilities for the Programming Language Community (http://doi.acm.org/10.1145/2661136.2661156)
  7. An Empirical Investigation into Programming Language Syntax (http://dl.acm.org/citation.cfm?doid=2534973)
  8. An empirical comparison of the accuracy rates of novices using the quorum, perl, and randomo programming languages (http://dl.acm.org/citation.cfm?doid=2089155.2089159)
  9. All Syntax Errors Are Not Equal (

Keybase proof

I hereby claim:

  • I am FDeitelhoff on github.
  • I am fdeitelhoff (https://keybase.io/fdeitelhoff) on keybase.
  • I have a public key whose fingerprint is 59FD C5AF 8816 CF1B D13B 3CE5 A544 FCB6 6CBC 94CC

To claim this, I am signing this object:

@fdeitelhoff
fdeitelhoff / ProcessReceive.cs
Created February 4, 2014 14:10
Manipulate the received data in a high performance c# socket server before it get's echoed back.
private void ProcessReceive(SocketAsyncEventArgs e)
{
if (e.BytesTransferred > 0 && e.SocketError == SocketError.Success)
{
var token = (AsyncUserToken)e.UserToken;
//echo the data received back to the client
var data = System.Text.Encoding.UTF8.GetString(e.Buffer, e.Offset, e.BytesTransferred);
data = string.Format("{0}: {1}", DateTime.Now, data.ToUpper());
@fdeitelhoff
fdeitelhoff / App.config
Created December 1, 2013 10:30
App.config for the FeatureSwitcher lib.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="featureSwitcher" type="FeatureSwitcher.Configuration.SectionGroup, FeatureSwitcher.Configuration">
<section name="default" type="FeatureSwitcher.Configuration.DefaultSection, FeatureSwitcher.Configuration"/>
<section name="features" type="FeatureSwitcher.Configuration.FeaturesSection, FeatureSwitcher.Configuration"/>
</sectionGroup>
</configSections>
<featureSwitcher>
<default featuresEnabled="true"/>
@fdeitelhoff
fdeitelhoff / gitignore.ps1
Last active December 28, 2015 09:59
PowerShell v3 script for gitignore.io.
#For PowerShell v3
Function gitignore {
Param(
[Parameter(Mandatory=$true)]
[string[]]$list
)
$params = $list -join ","
invoke-WebRequest -Uri "http://gitignore.io/api/$params" | select -expandproperty content | out-file -FilePath $(join-path -path $pwd -ChildPath ".gitignore") -Encoding ascii
}
@fdeitelhoff
fdeitelhoff / git-config.txt
Created November 11, 2013 16:31
Git configuration to use the diff-doc JavaScript diff script.
[diff]
tool = wdiff
[difftool "wdiff"]
cmd="wscript.exe \"c:\\Program Files\\TortoiseGit\\Diff-Scripts\\diff-doc.js\" \"$LOCAL\" \"`pwd`/$REMOTE\""
@fdeitelhoff
fdeitelhoff / ExcelLifeBookRanges.cs
Created November 8, 2013 14:15
Mark ranges between two years in the Excel 2013 workbook.
private void MarkKinderkarden(int fromYear, int toYear)
{
MarkRange(fromYear, toYear, Color.SteelBlue);
}
private void MarkRange(int fromYear, int toYear, Color color)
{
var dayStart = fromYear*365;
var dayEnd = toYear*365;
@fdeitelhoff
fdeitelhoff / ExcelLifeBookBirthdays.cs
Created November 8, 2013 13:39
Calculate birthdays and visualize them in the 170 x 170 area of the Excel 2013 workbook.
private void CalculateBirthdays(int rows, int columns)
{
var days = 1;
var years = 1;
for (var row = 1; row <= rows; row++)
{
for (var column = 1; column <= columns; column++)
{
var cell = Cells[row, column] as Range;
@fdeitelhoff
fdeitelhoff / ExcelLifeBookFormatting.cs
Created November 8, 2013 10:07
Format a 170 x 170 cell area in Excel 2013 with a gray background and a black border.
private void ApplyFormatting(int rows, int columns)
{
// Complete surrounding borders of the gray box.
Range[Cells[1, 1], Cells[rows, columns]].Interior.Color = Color.LightGray;
Range[Cells[1, 1], Cells[rows, columns]].Borders[XlBordersIndex.xlEdgeTop].LineStyle = XlLineStyle.xlContinuous;
Range[Cells[1, 1], Cells[rows, columns]].Borders[XlBordersIndex.xlEdgeLeft].LineStyle = XlLineStyle.xlContinuous;
Range[Cells[1, 1], Cells[rows, columns]].Borders[XlBordersIndex.xlEdgeBottom].LineStyle = XlLineStyle.xlContinuous;
Range[Cells[1, 1], Cells[rows, columns]].Borders[XlBordersIndex.xlEdgeRight].LineStyle = XlLineStyle.xlContinuous;
// Set all column width to 2.14. That's a nice looking width.