This file contains 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
sub getFirstEmail{ | |
my $email = shift; | |
if($email){ | |
if($email =~ /,/){ | |
my @emails = split(',',$email); | |
$email = $emails[0]; | |
} | |
} | |
return $email; |
This file contains 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
from re import compile | |
from django.conf import settings | |
from django.http import HttpResponseRedirect | |
from django.utils.http import is_safe_url | |
from django.utils.deprecation import MiddlewareMixin | |
EXEMPT_URLS = [compile(settings.LOGIN_URL.lstrip('/'))] | |
if hasattr(settings, 'LOGIN_EXEMPT_URLS'): | |
EXEMPT_URLS += [compile(expr) for expr in settings.LOGIN_EXEMPT_URLS] |
This file contains 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
my $search = $schema>resultset('Table')->search( | |
{ column_1 => { 'in' => [ 105, 106, 73, 74, 99, 75 ] }, | |
column_2 => { 'not in' => [ 45,25,28] }, | |
column_3 => { 'not in' => \@array} | |
} | |
); |
This file contains 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
(function() { | |
'use strict'; | |
angular | |
.module('serviceRequest') | |
.factory('webSocket', webSocket); | |
/* @ngInject */ | |
function webSocket($rootScope,$timeout) { | |
var socket; |
This file contains 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
// ==UserScript== | |
// @name Mi Campsite Watcher | |
// @namespace https://www.midnrreservations.com/create-booking | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.midnrreservations.com/create-booking/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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 React, {ReactElement, ReactNode, useEffect, useRef} from 'react'; | |
import { | |
Pressable, | |
Animated, | |
Dimensions, | |
} from 'react-native'; | |
export interface FadedBGProps { | |
testID?: string; | |
onPress?: () => void; |