Skip to content

Instantly share code, notes, and snippets.

View franckalbinet's full-sized avatar

fcbollo franckalbinet

View GitHub Profile
prb_id,ip,hostname,org,description,country_name,country_code,region,city,lon,lat
239,196.1.95.16,dkr-sn.probe.atlas.ucad.sn,AS8346 SONATEL-AS Autonomous System,UCAD Probe,Senegal,SN,,,-17.4415,14.6715
242,196.210.11.182,196-210-11-182.dynamic.isadsl.co.za,AS3741 Internet Solutions,1 Belvedere,South Africa,ZA,Western Cape,Cape Town,18.4895,-33.9815
446,196.192.112.229,p446.probes.atlas.ripe.net,AS37708 African Network Information Center - ( AfriNIC Ltd. ),AFRINIC Mauritius,Mauritius,MU,,,57.4995,-20.2395
473,196.4.161.3,ripe-ncc.is.co.za,AS3741 Internet Solutions,"Internet Solutions [http://www.is.co.za] - Rosebank, ZA - (AS3741)",South Africa,ZA,,,28.0405,-26.1515
504,193.95.97.132,,AS2609 Tunisia BackBone AS,"ATI, KASBAH, 1G/s",Tunisia,TN,Aryanah,Tunis,10.1675,36.7995
567,193.95.66.40,,AS2609 Tunisia BackBone AS,"ATI, BELVEDERE, 1G/s",Tunisia,TN,Aryanah,Tunis,10.1805,36.8205
596,168.167.253.35,,AS14988 Botswana Telecommunications Corporation,BTC GABORONE PROBE,Botswana,BW,South-East,Gaborone,25.9115,-24.6595
# Final solution
lut = {'one': '1', 'two': '2', 'three': '3', 'four': '4', 'five': '5', 'six': '6', 'seven': '7', 'eight': '8', 'nine': '9'}
def get_digits(line):
pattern = r'(?=(\d|one|two|three|four|five|six|seven|eight|nine))'
matches = re.finditer(pattern, line)
result = []
for match in matches:
digit = match.group(1)
if match.group(1) in lut:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Claude prompting guide

General tips for effective prompting

1. Be clear and specific

  • Clearly state your task or question at the beginning of your message.
  • Provide context and details to help Claude understand your needs.
  • Break complex tasks into smaller, manageable steps.

Bad prompt: