Skip to content

Instantly share code, notes, and snippets.

View berserker1's full-sized avatar
🎯
Focusing

Aaryan Bhagat berserker1

🎯
Focusing
View GitHub Profile
#include<bits/stdc++.h>
using namespace std;
int lps(string a)
{
int n = a.size();
int length = 0;
bool dp[n][n];
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
@berserker1
berserker1 / snippet.py
Last active August 17, 2019 19:52
candy
mailing_lists_set = set()
list_manager = getUtility(IListManager)
for mlist in list_manager.mailing_lists:
mailing_lists_set.add(mlist)
for mlist in mailing_lists_set:
# obtain members whose deliverystatus is disabled by_bounce
status_type = DeliveryStatus.by_bounces
roster = mlist.members
addresses = list(roster.addresses)
for address in addresses:
//Test case you can try ["foo", {"bar":["baz",null,1.0,2]}]
//Try another examples also
#include<bits/stdc++.h>
using namespace std;
int prettyjson(string s,stack<char> st,int length,int i,int tabs)
{
if(i<length)
{
if((s[i]=='[') || (s[i]=='{'))
{
@berserker1
berserker1 / bounce_processing.md
Created March 27, 2019 19:06
Current status of bounce processing in Mailman.

Bounce processes

  • File bounce.py in mailman/src/mailman/interfaces is an interface file which defines various class of bounce functions.Here the templates are to define a registration record and register bounce events.

  • File bounce.py in mailman/src/mailman/model is a model file for various functions, it works on the interfaces provided by the above files.

  • File bounce.py in mailman/src/mailman/runners/bounce.py runs the bounce runner.
    More info below link in the title Imp doc having Runners of mailman

    • Currently it is just finding out the temporary and permanent failures and storing the addresses to be processed. >