Skip to content

Instantly share code, notes, and snippets.

View msafder's full-sized avatar

Mo Safder msafder

View GitHub Profile
#!/bin/bash
#
# (Above line comes out when placing in Xcode scheme)
#
API_TOKEN=<TestFlight API token here>
TEAM_TOKEN=<TestFlight team token here>
SIGNING_IDENTITY="iPhone Distribution: Development Seed"
PROVISIONING_PROFILE="${HOME}/Library/MobileDevice/Provisioning Profiles/MapBox Ad Hoc.mobileprovision"
#LOG="/tmp/testflight.log"
#!/bin/bash
#
# (Above line comes out when placing in Xcode scheme)
#
# Inspired by original script by incanus:
# https://gist.github.com/1186990
#
# Rewritten by martijnthe:
# https://gist.github.com/1379127
#
@msafder
msafder / .gitignore
Last active December 26, 2015 11:19 — forked from adamgit/.gitignore
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
#!/bin/bash
#### SETUP
# 1.) Create a simple point layer
curl -X POST -d '{"layer":"geom","lat":"lat","lon":"lon"}' --header "Content-Type:application/json" http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer
# 2.) Add a spatial index
curl -X POST -d '{"name":"geom","config":{"provider":"spatial","geometry_type":"point","lat":"lat","lon":"lon"}}' --header "Content-Type:application/json" http://localhost:7474/db/data/index/node/
Recently, I was asked to pitch a method for providing recommendations. Luckily, armed with the knowledge obtained from talks from Max De Marzi and [Mark Needham](https://skillsmatter.com/skillscasts/7298-modelling-a-recommendation-engine-a-worked-example) at a recent Neo4j London Meetups, I knew this could be easily achieved with Neo4j.
The key issue with recommendation engines comes from the data. Luckily, Neo4j comes bundled with the Northwind Graph Example. The Northwind database is an infamous dataset containing purchase history that has been used to teach relational databases for years and was a great place to start. You can import the Northwind database into a graph by following the ["Import Data into Neo4j"](http://neo4j.com/developer/guide-importing-data-and-etl/) post on Neo4j or type the following into Neo4j's browser at `http://localhost:7474/`
:play northwind graph
Firstly, let's load in the data:
[source,cypher]
@msafder
msafder / AI_Newsletter_July2024.md
Created July 15, 2024 18:28
AI Newsleter for July 2024

[July 2024] Here's a summary of the key points covered several significant news stories on (AI) advancements and corporate movements. These points highlight the rapid advancements and ongoing challenges in the AI industry, reflecting both the potential and the risks associated with emerging technologies:

  1. Apple's Involvement with OpenAI:

    • Apple is reportedly getting a board observer seat on OpenAI's board without any financial investment, unlike Microsoft's significant investment to gain board presence.
    • Phil Schiller, Apple's former marketing chief, has been chosen for the role.
    • This move is surprising because Apple has been developing its own AI technologies and keeping OpenAI at a distance.
    • Microsoft and Apple abandon board roles at OpenAI amid increasing regulatory scrutiny
  2. Salesforce's AI Developments:

  • Salesforce CEO Marc Benioff announced "Einstein Tiny Giant," a 1 billion parameter model that outperfor