This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| MIT License | |
| Copyright (c) 2016 Matt Menzenski | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RootsDev | |
| https://github.com/rootsdev/roots-search (Chrome Plug-in / JavaScript) | |
| https://github.com/rootsdev/familysearch-javascript-sdk | |
| https://github.com/rootsdev/gofamilysearch (Go FamilySearch SDK) | |
| https://github.com/rootsdev/polygenea (Java and D, Collaborative Research-centric Data Model) | |
| https://github.com/rootsdev/familysearch-reference-client (JavaScript/Angular, Tree Client for FamilySearch API) | |
| https://github.com/rootsdev/genealogy-search (Chrome Extension) | |
| https://github.com/rootsdev/people-inspector (Chrome Extension - historical-data.org microdata reader) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function cidr_match($ip, $ranges) | |
| { | |
| $ranges = (array)$ranges; | |
| foreach($ranges as $range) { | |
| list($subnet, $mask) = explode('/', $range); | |
| if((ip2long($ip) & ~((1 << (32 - $mask)) - 1)) == ip2long($subnet)) { | |
| return true; | |
| } | |
| } |