Skip to content

Instantly share code, notes, and snippets.

@koomar
koomar / zip-code
Created February 8, 2023 21:00
zip to lat long
This file has been truncated, but you can view the full file.
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696
00622,17.991245, -67.153993
00623,18.083361, -67.153897
@koomar
koomar / fix_wifi.sh
Last active December 6, 2022 21:28
fix_wifi.sh
#!/usr/bin/env bash
read -p "See https://www.meter.com/mac_osx_awdl_psa for more details. You will be prompted for your admin password. Do you want to continue? y/n/c " choice
case $choice in
[yY]* ) echo "Great" ;;
[nN]* ) exit ;;
[cC]* ) exit ;;
*) exit ;;
esac
@koomar
koomar / ventura_wifi_fix.sh
Created December 6, 2022 17:41
Turns off awdl0 interface affecting wifi on Mac OSX
#!/usr/bin/env bash
set -euo pipefail
while true; do
if ifconfig awdl0 |grep -q "<UP"; then
(set -x; ifconfig awdl0 down)
fi
sleep 1
@koomar
koomar / fruits.json
Last active July 14, 2017 21:44
fruits.json
[
{
"name": "mango",
"image": "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png",
},
{
"name": "mango",
"image": "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png",
},
{
(
"<NSLayoutConstraint:0x7fcf1bfdd440 V:[NDContentActionsView:0x7fcf1bfd2310(34)]>",
"<NSLayoutConstraint:0x7fcf1bf2c260 V:[NDUIKit.NDUICircularImageView:0x7fcf1bfd84f0(20)]>",
"<NSLayoutConstraint:0x7fcf1bfc3d20 V:[NDUIKit.NDUIImageView:0x7fcf1bfd4100(290)]>",
"<NSLayoutConstraint:0x7fcf1bf290c0 V:|-(20)-[NDUIKit.NDUICircularImageView:0x7fcf1bfd84f0] (Names: '|':UIView:0x7fcf1bf5b980 )>",
"<NSLayoutConstraint:0x7fcf1bf23b60 V:[NDUIKit.NDUICircularImageView:0x7fcf1bfd84f0]-(11)-[TTTAttributedLabel:0x7fcf1bfca720'Lorem ipsum dolor sit ame...']>",
"<NSLayoutConstraint:0x7fcf1bff3e40 V:[TTTAttributedLabel:0x7fcf1bfca720'Lorem ipsum dolor sit ame...']-(10)-[NDUIKit.NDUIImageView:0x7fcf1bfd4100]>",
"<NSLayoutConstraint:0x7fcf1bff1980 V:[NDUIKit.NDUIImageView:0x7fcf1bfd4100]-(0)-[NDStoryAttachmentContainerView:0x7fcf1bff84d0]>",
"<NSLayoutConstraint:0x7fcf1bff1a70 V:[NDStoryAttachmentContainerView:0x7fcf1bff84d0]-(8)-[NDScopeLineView:0x7fcf1bff9fd0]>",
"<NSLayoutConstraint:0x7f
@koomar
koomar / AsyncSenTestingKitTests.h
Created December 3, 2012 22:20 — forked from akisute/AsyncSenTestingKitTests.h
SenAsyncTestCase - Asynchronous capable SenTestCase
//
// AsyncSenTestingKitTests.h
// AsyncSenTestingKitTests
//
// Created by 小野 将司 on 12/03/17.
// Copyright (c) 2012年 AppBankGames Inc. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>
#import "SenAsyncTestCase.h"
@koomar
koomar / FadeOut.m
Created March 28, 2012 04:03
iOS Animations
- (void)loadView {
splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
splashView.image = [UIImage imageNamed:@"Default.png"];
[[[UIApplication sharedApplication] keyWindow] addSubview:splashView];
[[[UIApplication sharedApplication] keyWindow] bringSubviewToFront:splashView];
if (splashView) {
splashView.alpha = 1.0f;
[UIView beginAnimations:@"FadeOut" context:nil];
[UIView setAnimationDelegate:self];