Skip to content

Instantly share code, notes, and snippets.

View jakeols's full-sized avatar
:shipit:

Jake Ols jakeols

:shipit:
View GitHub Profile
@jakeols
jakeols / Podfile
Created November 10, 2019 00:42
Set specific Swift version in Podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
if ['POD', 'POD', 'POD'].include? target.name # !! SET PODS HERE !!
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2' # !! SET SWIFT VERSION HERE !!
end
end
end
end
@jakeols
jakeols / Mapviewer.js
Created November 9, 2019 02:38
An example of using ReactMapBoxGl, with the MapBox SDK.
import React, { Component } from "react";
import ReactMapboxGl, { Layer, Feature, Source } from "react-mapbox-gl";
import DrawControl from "react-mapbox-gl-draw";
import "whatwg-fetch";
import "@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css";
const mbxClient = require("@mapbox/mapbox-sdk");
const baseClient = mbxClient({ accessToken: "YOUR_ACCESS_TOKEN_HERE" });
const mapService = require("@mapbox/mapbox-sdk/services/map-matching");
const mapClient = mapService(baseClient);
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
const int N = 9; // board constant dimensions
int checkValue(int board[][9], int row, int col, int value);
void checkPuzzle(int board[][9], int row, int col, int value);
<?php
require 'class.sosumi.php';
# icloud credentials
$ssm = new Sosumi('EMAIL', 'PASSWORD');
# show all devices
# print_r($ssm->devices);
$device_number = 'DEVICE_NUMBER';
$location_info = $ssm->locate($device_number);

Keybase proof

I hereby claim:

  • I am jakeols on github.
  • I am jo (https://keybase.io/jo) on keybase.
  • I have a public key whose fingerprint is 01FA 0300 0A76 9796 02BF 1E87 C393 98AD C354 D057

To claim this, I am signing this object: