Skip to content

Instantly share code, notes, and snippets.

View VivienGiraud's full-sized avatar
🏒
Freelancing

Vivien Giraud VivienGiraud

🏒
Freelancing
View GitHub Profile
@andreibosco
andreibosco / creative-cloud-disable.md
Last active December 19, 2024 08:28
disable creative cloud startup on mac
@graphadvantage
graphadvantage / part1-neo4j-marketing-attribution.md
Last active March 21, 2024 13:23
Neo4j GraphGist: Real-Time Marketing Attribution & Recommendations - Part 1 Marketing Attribution Modeling

##Neo4j GraphGist - Marketing Recommendations Using Last Touch Attribution Modeling and k-NN Binary Cosine Similarity

Neo4j Use Case: Real-Time Marketing Recommendations

#Part 1. Neo4j Marketing Attribution Models

Introduction

Graphs are well suited for marketing analytics - a natural fit since marketing is principally about relationships. In this GraphGist, we'll take a look at how to use Neo4j to make real-time marketing recommendations.

@martinapugliese
martinapugliese / boto_dynamodb_methods.py
Last active June 30, 2024 10:00
Some wrapper methods to deal with DynamoDB databases in Python, using boto3.
# Copyright (C) 2016 Martina Pugliese
from boto3 import resource
from boto3.dynamodb.conditions import Key
# The boto3 dynamoDB resource
dynamodb_resource = resource('dynamodb')
def get_table_metadata(table_name):
@Integralist
Integralist / Python Asyncio Timing Decorator.py
Last active December 30, 2024 22:10
Python Asyncio Timing Decorator
import asyncio
import time
def timeit(func):
async def process(func, *args, **params):
if asyncio.iscoroutinefunction(func):
print('this function is a coroutine: {}'.format(func.__name__))
return await func(*args, **params)
else:

How to setup AWS lambda function to talk to the internet and VPC

I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.

So it might be really unintuitive at first but lambda functions have three states.

  1. No VPC, where it can talk openly to the web, but can't talk to any of your AWS services.
  2. VPC, the default setting where the lambda function can talk to your AWS services but can't talk to the web.
  3. VPC with NAT, The best of both worlds, AWS services and web.
@abhaystoic
abhaystoic / web_scraper2.py
Last active January 16, 2018 19:54
New improved web scraper | Python | Selenium | BeautifulSoup | PhantomJS
# -*- coding: utf-8 -*-
'''
Created on May 27, 2016
@author: abgupta
'''
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
import time, sys, traceback
from HTMLParser import HTMLParser
@nagarjun
nagarjun / aircraftIcaoIata.json
Created April 26, 2016 08:27
List of ICAO and IATA aircraft type designators
[
{
"icaoCode": "A124",
"iataCode": "A4F",
"description": "Antonov AN-124 Ruslan"
},
{
"icaoCode": "A140",
"iataCode": "A40",
"description": "Antonov AN-140"
@gothedistance
gothedistance / sample.swift
Created February 15, 2016 10:05
Push CustomViewControler on Eureka Row
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let remind_vc = storyboard.instantiateViewControllerWithIdentifier
("ReminderViewController") as! ReminderViewController
form +++ Section()
<<< ButtonRow("repeat_type") {
$0.title = "繰り返し"
$0.hidden = hiddenCondition
$0.presentationMode = .Show(
controllerProvider: ControllerProvider.Callback {
@nepsilon
nepsilon / how-to-git-patch-diff.md
Last active April 24, 2025 10:08
How to generate and apply patches with git? — First published in fullweb.io issue #33

How to generate and apply patches with git?

It sometimes happen you need change code on a machine from which you cannot push to the repo. You’re ready to copy/paste what diff outputs to your local working copy.

You think there must be a better way to proceed and you’re right. It’s a simple 2 steps process:

1. Generate the patch:

git diff &gt; some-changes.patch
//
// LocationRow.swift
// bicimapa
//
// Created by Yoann Lecuyer on 16/01/16.
// Copyright © 2016 Bicimapa. All rights reserved.
//
import UIKit
import Eureka