Skip to content

Instantly share code, notes, and snippets.

View marklap's full-sized avatar

Mark LaPerriere marklap

View GitHub Profile
{
"info": {
"_postman_id": "c4fe8106-d044-491f-9799-2ab19c0919d9",
"name": "C-Project",
"description": "C-Project example use.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Tail Log File",
@marklap
marklap / ipconv.go
Last active September 6, 2023 15:20
Messing around turning IP addresses into integers
// //////////////////////////////////////////////////////////////////////////////
// The MIT License (MIT)
//
// # Copyright (c) 2016 Mark LaPerriere
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
@marklap
marklap / peekable_generator.py
Created July 11, 2023 21:45
An implementation of a generator that detects when the last item has been consumed.
#!/usr/bin/env python
################################################################################
# The MIT License (MIT)
#
# Copyright (c) 2023 Mark LaPerriere
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#!/usr/bin/env python
################################################################################
# The MIT License (MIT)
#
# Copyright (c) 2021 Mark LaPerriere
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#!/usr/bin/env python
################################################################################
# The MIT License (MIT)
#
# Copyright (c) 2021 Mark LaPerriere
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@marklap
marklap / jumble_case.py
Last active March 10, 2021 16:07
Jumble the case of a string
#!/usr/bin/env python
################################################################################
# The MIT License (MIT)
#
# Copyright (c) 2021 Mark LaPerriere
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@marklap
marklap / lapsync.go
Last active July 18, 2018 22:37
Rsync-lite-ish script that uses parallel goroutines to speed things up a bit.
////////////////////////////////////////////////////////////////////////////////
// The MIT License (MIT)
//
// Copyright (c) 2015 Mark LaPerriere
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
@marklap
marklap / sqrt.py
Last active May 9, 2018 18:35
little fun creating a square root function
#!/usr/bin/env python
################################################################################
# The MIT License (MIT)
#
# Copyright (c) 2018 Mark LaPerriere
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@marklap
marklap / __init__.py
Created May 6, 2018 05:32
longest palindromic substring
''' longest_palindromic_substring package '''
@marklap
marklap / __init__.py
Last active May 6, 2018 05:19
Implementation of atoi
''' atoi package '''