Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Jauvin cjauvin

View GitHub Profile
View install.yml
- name: Run whoami to get ssh user
command: whoami
register: whoami_output
- name: Set user fact
set_fact:
user: "{{ whoami_output.stdout }}"
- name: test it!
debug: msg="{{ user }}" # should be vagrant on a VM, or your remote user for whatever else
View knn.py
{
"metadata": {
"name": "",
"signature": "sha256:f359a032d9f3827507e0c219d2bd2bf52bac5cb7e19595c49094e9d0c37a0075"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View knn.json
{
"metadata": {
"name": "",
"signature": "sha256:470129fc930ac898a2329a0d092295ee9959019757b377ff1f8aa45c837d7456"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View crawling_scheduler_sim.json
{
"metadata": {
"name": "",
"signature": "sha256:41cea5f34899e267827b752bc05259bbcb784fc8c59a8eaca8b68ef2e1cb156b"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View crawling_scheduler_solution.json
{
"metadata": {
"name": "",
"signature": "sha256:d87520ea2bf0a90163890ceae77de024f4e11db93872945df0017ab0b6f1189a"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View crawler_scheduler_beta.json
{
"metadata": {
"name": "",
"signature": "sha256:99aeb3cf149c3a930a669cacd6b4bcffd6947445d6319bb5ace164909709711f"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View csparse_multiply.py
# from that book: https://www.cise.ufl.edu/research/sparse/CSparse/
from __future__ import division, print_function
import numpy as np
import scipy.sparse
def multiply_csc(A, B):
assert A.__class__ is scipy.sparse.csc_matrix
assert B.__class__ is scipy.sparse.csc_matrix
View xss.js
<script>alert(1)</script>
View fraud.json
{
"metadata": {
"name": "",
"signature": "sha256:170c46784f3e0b997ceb3c3357bbe718d35d1f97cc2c321d191cd11d3758ea2a"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View fraud_detection.json
{
"metadata": {
"name": "",
"signature": "sha256:bcfe4b55e6d42f5d9dd5325fa546124ae29654f445f6805cead751ae32059a8d"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
You can’t perform that action at this time.