Skip to content

Instantly share code, notes, and snippets.

View r4hulp's full-sized avatar
🎯
Focusing

Rahul P r4hulp

🎯
Focusing
View GitHub Profile
@r4hulp
r4hulp / dutch-verbs.md
Last active June 18, 2021 13:43
Dutch Verbs
Infinitive simple past singular simple past plural past participle English
bakken bakte bakten gebakken to fry
bannen bande banden gebannen to ban
barsten barstte barstten gebarsten * to burst
bederven bedierf bedierven bedorven @ to rot
bedriegen bedroog bedrogen bedrogen to deceive
@r4hulp
r4hulp / dutch-verbs.json
Created April 16, 2021 09:33
Most common dutch verbs
[
{
"infinitive":"Infinitive",
"simplepast":"simple past singular",
"simplepastplural":"simple past plural",
"pastparticiple":"past participle",
"english":"English"
},
{
"infinitive":"bakken",
@r4hulp
r4hulp / reclaimWindows10.ps1
Created January 15, 2019 10:37 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@r4hulp
r4hulp / each.js
Last active December 11, 2018 06:47
JQuery reverse iteration
for( i =  $('li').size(); i>= 0 ; i--){
$('li').eq(i).someSuperLogicHere;
}
@r4hulp
r4hulp / wp.css
Last active December 11, 2018 06:46
WP Shortcodes
.button_style{
display: inline-block;
font-size: 11px;
height: 19px;
margin: 5px 10px 5px 10px;
padding: 9px 13px 0;
text-decoration: none !important;
color:#fff !important;
line-height:11px;
background: #59595a;
@r4hulp
r4hulp / vm1.js
Last active December 11, 2018 06:30
Communication between multiple viewmodels
var self = this;
self.firstName = ko.observable();
self.lastName = ko.observable();
self.fullName = ko.computed(function(){
return self.firstName + " " + self.lastName;
});
};
var viewModel2 = function(){
var self = this;
@r4hulp
r4hulp / custom-handler.cs
Last active December 11, 2018 06:26
Securing ASP.Net WebAPI, Gateway approach
CustomMessageHandler customMessageHandler = new CustomMessageHandler(){ InnerHandler = new HttpControllerHandler(config)};
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional },
constraints : null,
handler : customMessageHandler
);
@r4hulp
r4hulp / bxslider-display.php
Last active December 11, 2018 06:22
BxSlider article
<ul id="bxslider">
<?php if( have_posts() ) : while( have_posts() ) : the_post(); ?>
<!--Each post is wrapped in List item.. -->
<li>
<div class="thumbnail">
<?php
if(has_post_thumbnail()) { ?>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_thumbnail( 'thumbnail');?></a> <!-- Image links to Post -->
<?php } else { ?>
<div class="no-thumb"><h2>No thumbnail for this :D</h2><h3>wrapcode</h3></div>
@r4hulp
r4hulp / RootDialog.cs
Created December 29, 2017 12:25
Injecting parameters in Dialog
Dictionary<string, object> dict = new Dictionary<string, object>();
dict.Add("ticket_id", "this is string");
dict.Add("order", this.order);
context.Call(this.dialogFactory.Create<OrderSummaryDialog, Dictionary<string, object>>(dict), this.AfterOrderSummaryDialog);
@r4hulp
r4hulp / RootDialog.cs
Last active December 29, 2017 12:16
RootDialog calling other dialog using dialog factory
[Serializable]
public class RootDialog : IDialog<object>
{
private ConversationReference conversationReference;
private IDialogFactory dialogFactory;
public RootDialog(IDialogFactory dialogFactory)
{
this.dialogFactory = dialogFactory;
}