Skip to content

Instantly share code, notes, and snippets.

View djhvscf's full-sized avatar
😎
Supporting Bootstrap-Table!

Dennis Hernández djhvscf

😎
Supporting Bootstrap-Table!
View GitHub Profile
@kevinmutlow
kevinmutlow / ExtSearchBar.xaml
Last active June 25, 2020 16:09
Custom SearchBar for Xamarin.Forms with Filter icon and auto-search on text changed
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="App.Core.Controls.ExtSearchBar"
x:Name="Root">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50" />
</Grid.RowDefinitions>
@debashisbarman
debashisbarman / README.md
Last active February 15, 2024 02:19
A boilerplate Twitter bot that can retweet in response to the tweets matching particluar keyword (https://goo.gl/4whEIt)

Creating a Twitter bot with Node.js

Learn how you can create your own Twitter bot using Node.js and the new Twitter API. The bot will auto retweet in response to tweets with some particular hashtags. (https://goo.gl/4whEIt)

Tools we need

Here are the tools we’ll be using to create the bot — 

  • Node.js installed in your machine
  • A registered Twitter account

Create a Twitter application

@jonny-novikov
jonny-novikov / gist:6289af322b9fa0be9011
Created February 23, 2015 17:07
C# equivalent to preg_match and preg_replace
/// <summary>
/// .NET C# equivalent to PHP preg_match and preg_replace
/// </summary>
public static class RegexExtensions
{
/// <summary>
/// Equivalent to PHP preg_match but only for 3 requied parameters
/// </summary>
/// <param name="regex"></param>
/// <param name="input"></param>
@markthiessen
markthiessen / getWeeksInMonth.js
Last active April 25, 2024 02:05
JavaScript - get weeks in a month as array of start and end days
//note: month is 0 based, just like Dates in js
function getWeeksInMonth(year, month) {
const weeks = [],
firstDate = new Date(year, month, 1),
lastDate = new Date(year, month + 1, 0),
numDays = lastDate.getDate();
let dayOfWeekCounter = firstDate.getDay();
for (let date = 1; date <= numDays; date++) {