- Create access token for your github user with read rights to org.
- Install github-backup
pip install github-backup
github-backup -t --all -O -P --prefer-ssh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"name": "Brandon", | |
"age": 32 | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def ops | |
{"+" + | |
"-" - | |
"*" * | |
":" /}) | |
;; calc request handler and proof the app's in clojure jerk | |
(defn calc [req] | |
(let [a (Integer. (get-in req [:route-params :a])) | |
b (Integer. (get-in req [:route-params :b])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns webdev.core | |
(:require [ring.adapter.jetty :as jetty] | |
[ring.middleware.reload :refer [wrap-reload]] | |
[compojure.core :refer [defroutes GET]] | |
[compojure.route :refer [not-found]] | |
[ring.handler.dump :refer [handle-dump]])) | |
(defn about [req] | |
{:status 200 | |
:body "My name is Brandon Orther. I am following along with LispCast's Intro to Web Development with Clojure." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from SOAPpy import WSDL | |
SITELINK_URL = "https://api.smdservers.net/CCWs_3.5/CallCenterWs.asmx?WSDL" | |
SITELINK_CORP_CODE = "CCTST" | |
SITELINK_LOC_CODE = "Demo" | |
SITELINK_CORP_LOGIN = "Administrator" | |
SITELINK_CORP_PASS = "Demo" | |
SITE_INFORMATION_PARAMS = { | |
"sCorpCode": SITELINK_CORP_CODE, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export FIRST_LINE=0 | |
export LAST_LINE=0 | |
sleep 1 | |
sed -i'' "$FIRST_LINE,$LAST_LINE s/^/#/" /root/Dropbox/PSA_All_Check | |
sleep 2 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Comment Test | |
#Comment Test | |
#Comment Test | |
#Comment Test | |
#Comment Test | |
export FIRST_LINE=0 | |
export LAST_LINE=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
from sow_web_codegen.reader.xlsx import XlsxReader | |
from sow_web_codegen.reader.xlsx import XlsxReaderInvalidFileFormatException | |
from tests import EXAMPLE_WORKSHEET_XLSX as example_worksheet | |
def gen_get_value_func(columns, row): | |
def get_column(column): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ============================================================ | |
// $ npm install --save-dev gulp-util node-notifier gulp vinyl-source-stream vinyl-buffer gulp-uglify gulp-sourcemaps gulp-livereload browserify watchify babelify gulp-sass gulp-autoprefixer gulp-rename | |
// ============================================================ | |
function Workflow() | |
{ | |
// Override workflow settings here | |
this.input.directory = 'src'; | |
this.input.script = 'js/main.jsx'; | |
this.input.style = 'css/main.scss'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[clojure.core.reducers :as r]) | |
(defn top-two | |
[[big1 big2 :as acc] x] | |
(cond | |
(> x big1) [x big1] | |
(> x big2) [big1 x] | |
:else acc)) | |
(defn top-two+ |