Gitlab exports repositories to tar archive which contains .bundle files.
We have repo.bundle file and we want to restore files from it.
- create bare repo from bundle file
git clone --mirror myrepo.bundle my.git
Gitlab exports repositories to tar archive which contains .bundle files.
We have repo.bundle file and we want to restore files from it.
git clone --mirror myrepo.bundle my.git
Run this from a normal Python notebook to install Golang kernel
!apt install golang-go libzmq3-dev
%env GOPATH=/root/go
!go get -u github.com/gopherdata/gophernotes
!cp ~/go/bin/gophernotes /usr/bin/
!mkdir /usr/local/share/jupyter/kernels/gophernotes
!cp ~/go/src/github.com/gopherdata/gophernotes/kernel/* \
/usr/local/share/jupyter/kernels/gophernotes
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>noisy-cell-0803</title> | |
<script type="application/dart" src="main.dart"></script> | |
</head> |
class Graph: | |
def __init__(self): | |
self.nodes = set() | |
self.edges = defaultdict(list) | |
self.distances = {} | |
def add_node(self, value): | |
self.nodes.add(value) | |
def add_edge(self, from_node, to_node, distance): |
""" | |
Simple python script to upload a file to Trello. | |
This script is a demo - done to show how to do it - it doesn't have | |
much practical purpose as it requires the use of a number of tokens | |
and identifiers which you can only get programmatically or by visiting | |
the website (in which case you may as well upload the attachment directly.) | |
You should read the Trello API docs prior to using this: | |
https://trello.com/docs/gettingstarted/index.html |
Google+ Domains API are meant to interact with your G+ accounts in the domain. With these APIs you can manage circles, read and write posts, shares, and comments etc.. more informations here
This tutorial is for creating an application that uses the Domains API, running on Google App Engine with python.
#!/usr/bin/env python | |
__author__ = 'Charles Hooper <[email protected]>' | |
import socket, ssl | |
socket.setdefaulttimeout(3) | |
class EasySSLWrap(object): | |
"""Connect over TCP+SSL using a context manager. | |
Usage: |
$lightgray : #819090; | |
$gray : #708284; | |
$mediumgray : #536870; | |
$darkgray : #475B62; | |
$darkblue : #0A2933; | |
$darkerblue : #042029; | |
$paleryellow : #FCF4DC; | |
$paleyellow : #EAE3CB; | |
$yellow : #A57706; | |
$orange : #BD3613; |