Skip to content

Instantly share code, notes, and snippets.

Hendrik Bulens hbulens

Block or report user

Report or block hbulens

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View HelloWorld_1.cs
class HelloWorldJob: IJob {
public HelloWorldJob() {}
public void Execute(IJobExecutionContext context) {
try {
} catch (Exception ex) {}
View 2015-12-01-extjs-grid-page-size-letting-the-user-decide_001.js
Ext.define('Ext.toolbar.PagingComboToolbar', {
extend: 'Ext.PagingToolbar',
displayInfo: false,
pageSize: 50,
initComponent: function() {
var me = this; = this.pageSize;
var combo = new Ext.form.ComboBox({
name: 'perpage',
width: 75,
View 2016-05-29-working-with-files-with-powershell_001.ps1
$configFiles = Get-ChildItem . *.js -rec
foreach ($file in $configFiles)
Write-Host $file.Name
View 2016-05-29-working-with-files-with-powershell_002.ps1
Get-ChildItem [
[-Path] <String[]> ]
[[-Filter] <String>]
[-Exclude <String[]>]
[-Include <String[]>]
View 2016-05-29-working-with-files-with-powershell_003.ps1
$configFiles = Get-ChildItem . *.js -rec
foreach ($file in $configFiles)
(Get-Content $file.PSPath) |
Foreach-Object { $_ -replace "TextToFind", "TextToReplaceBy" } |
Set-Content $file.PSPath
View 2016-05-29-working-with-files-with-powershell_004.ps1
$localePath=’C:\Users\hbulens\Desktop\test\{0}.js’ -f $cultureName
$localeTemplate = "@
Ext.onReady(function() {
if (Ext.util && Ext.util.Format) {
Ext.apply(Ext.util.Format, {
thousandSeparator: '.',
decimalSeparator: ',',
currencySign: 'R',
View 2016-05-29-working-with-files-with-powershell_005.ps1
$content = Get-Content $fileName
foreach ($line in $content)
Write-Host $line
$scriptPath = '.\FileWithContentGenerator.ps1'
invoke-expression "$scriptPath $line"
View 2016-05-29-working-with-files-with-powershell_006.txt
Powershell.exe .\test.ps1 -parameter1 'HELLO FROM PARAMETER 1' -parameter2 'HELLO FROM PARAMETER 2'
Powershell.exe .\test.ps1 -parameter1 "HELLO FROM PARAMETER 1" -parameter2 'HELLO FROM PARAMETER 2'
set /p DUMMY=Hit ENTER to continue...
View 2016-05-29-working-with-files-with-powershell_007.ps1
param([string]$parameter1, [string]$parameter2)
Write-Host $parameter1 $parameter2
View 2015-08-03-c-and-the-strava-web-api_001.cs
private T GetStravaData < T > (string url) {
HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url);
using(WebResponse response = request.GetResponse())
using(Stream responseStream = response.GetResponseStream())
using(StreamReader reader = new StreamReader(responseStream, Encoding.UTF8))
You can’t perform that action at this time.