Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:News="https://www.bing.com:443/news/search?format=RSS&amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;qft=interval%3D%227%22"><channel><title>&quot;Shantel Pudney * Mmaload&quot; - BingNews</title><link>https://www.bing.com:443/news/search?format=RSS&amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;qft=interval%3D%227%22</link><description>Search results</description><image><url>http://www.bing.com/rsslogo.gif</url><title>&quot;Shantel Pudney * Mmaload&quot;</title><link>https://www.bing.com:443/news/search?format=RSS&amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;qft=interval%3D%227%22</link></image><copyright>Copyright © 2016 Microsoft. All rights reserved. These XML results may not be used, reproduced or transmitted in any manner or for any purpose other than rendering Bing results within an RSS aggregator for your personal, non-commercial use. Any other use of these results requires express written permission from Microsoft Corporation. By accessing this w
<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:News="https://www.bing.com:443/news/search?format=RSS&amp;amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;amp;qft=interval%3D%227%22"><channel><title>Top Stories - BingNews</title><link>https://www.bing.com:443/news/search?format=RSS&amp;amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;amp;qft=interval%3D%227%22</link><description>Search results</description><image><url>http://www.bing.com/rsslogo.gif</url><title>Top Stories</title><link>https://www.bing.com:443/news/search?format=RSS&amp;amp;q=%22Shantel+Pudney+%2A+Mmaload%22&amp;amp;qft=interval%3D%227%22</link></image><copyright>Copyright \xc2\xa9 2016 Microsoft. All rights reserved. These XML results may not be used, reproduced or transmitted in any manner or for any purpose other than rendering Bing results within an RSS aggregator for your personal, non-commercial use. Any other use of these results requires express written permission from Microsoft Corporation. By accessing this web page or using the
http://9.rarbg.com:2710/announce
http://announce.torrentsmd.com:6969/announce
http://bt.careland.com.cn:6969/announce
http://explodie.org:6969/announce
http://mgtracker.org:2710/announce
http://tracker.tfile.me/announce
http://tracker.torrenty.org:6969/announce
http://tracker.trackerfix.com/announce
http://www.mvgroup.org:2710/announce
udp://9.rarbg.com:2710/announce
@malisetti
malisetti / next_big_number.js
Last active January 13, 2017 05:54
next big number
var num = "9123";
var digits = num.split("");
function nextBig(position, digits) {
var currentNumber = digits[position];
for (var i = position-1; i >= 0; i--) {
if (currentNumber > digits[i]) {
currentNumber = digits[i];
return i;
package main
import (
"encoding/json"
"github.com/PuerkitoBio/goquery"
"github.com/stints/twilio"
"log"
"os"
"strings"
"time"
@malisetti
malisetti / collatz.go
Created June 5, 2017 08:17
Longest Collatz sequence under one million
package main
func main() {
onem := 1000000
visited := map[int]int{}
maxstep := 1
var maxn int
for i := 1; i <= onem; i++ {
n := i
@malisetti
malisetti / hartman.go
Last active July 4, 2017 18:34
Supervises n number of go routines
// Package hartman supervises and keeps n workers at all times by restarting finished workers. https://en.wikipedia.org/wiki/Full_Metal_Jacket
package hartman
import (
"context"
"errors"
"log"
"sync"
)
@malisetti
malisetti / swagger.json
Created July 14, 2017 10:32
Apache NiFi Swagger json
{
"swagger" : "2.0",
"info" : {
"description" : "The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and \n stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description,\n definitions of the expected input and output, potential response codes, and the authorizations required\n to invoke each service.",
"version" : "1.3.0",
"title" : "NiFi Rest Api",
"contact" : {
"url" : "https://nifi.apache.org",
"email" : "dev@nifi.apache.org"
},
---
swagger: '2.0'
info:
description: "The Rest Api provides programmatic access to command and control a
NiFi instance in real time. Start and \n stop
processors, monitor queues, query provenance data, and more. Each endpoint below
includes a description,\n definitions
of the expected input and output, potential response codes, and the authorizations
required\n to invoke each service."
version: 1.3.0
@malisetti
malisetti / go-notes.md
Last active July 24, 2017 08:50
notes to self
  1. empty select blocks
select {}
  1. if you can't block but have to wait on something, block in another routine
go func() {
  wg.Wait()
}()