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
import itertools | |
from enum import Enum | |
from typing import TypeVar, Optional, Generic, List, Union | |
import psycopg.adapt | |
from psycopg.adapt import Buffer | |
from psycopg.types import TypeInfo | |
E = TypeVar("E", bound=Enum) |
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
meta: | |
id: psd | |
file-extension: psd | |
endian: be | |
seq: | |
- id: file_header | |
type: file_header | |
- id: color_mode_data | |
type: color_mode_data | |
- id: image_resources |
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
var validatePAN = function(pan){ | |
pan = pan.replace(/[^\d]+/g, ''); | |
if (pan.length < 12) | |
return false; | |
var even = false; | |
var check = 0; | |
for (var i = pan.length - 1; i >= 0; i--) { | |
var n = pan[i]|0; | |
if (even) { |