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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Location</title> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.css"> | |
<link rel="stylesheet" href="//cdn.jsdelivr.net/xeicon/2/xeicon.min.css"> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.7.2/less.min.js"></script> | |
<script src="//unpkg.com/vue"></script> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Password</title> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.css"> | |
<link rel="stylesheet" href="//cdn.jsdelivr.net/xeicon/2/xeicon.min.css"> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.7.2/less.min.js"></script> | |
<script src="//unpkg.com/vue"></script> |
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
height = -1; | |
leftMenu; | |
registerHeightChange(element: React.ReactElement<{}>) { | |
const Component = element.type['WrappedComponent']; | |
const orig = Component.prototype.componentDidUpdate; | |
const thiz = this; | |
Component.prototype.componentDidUpdate = function() { | |
// console.log(this); | |
const self = ReactDOM.findDOMNode(this); | |
if (thiz.height !== self.clientHeight) { |
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 | |
set -e | |
GIT_REPO_ROOT=$(git rev-parse --show-toplevel) | |
if [ "$GIT_REPO_ROOT" != "$PWD" ]; then | |
echo "Should run this script in the repository root"; | |
exit 1; | |
fi |
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 * as React from 'react'; | |
import * as ReactDOM from 'react-dom'; | |
import { RouteComponentProps, Link } from 'react-router'; | |
import { Provider, connect } from 'react-redux'; | |
import * as classNames from 'classnames'; | |
import * as state from '../../common/state'; | |
import * as reducer from '../../common/reducer'; | |
import * as actions from '../../common/actions'; |
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
/** | |
* marked - a markdown parser | |
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) | |
* https://github.com/chjj/marked | |
*/ | |
;(function() { | |
/** | |
* Block-Level Grammar |
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 * as React from 'react'; | |
import { Link } from 'react-router'; | |
import { _TR } from '../../common/language'; | |
import * as utils from '../../common/utils'; | |
import * as appinfo from '../../common/api.appinfo'; | |
interface TTabInfo { | |
title: string; | |
subUrl: string; |
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
(async function setup() { | |
let j = jenkins.getJenkins(); | |
let Family = aApp.models['Family']; | |
let Project = aApp.models['Project']; | |
let Job = aApp.models['Job']; | |
try { | |
await Family.destroyAll(); | |
await Project.destroyAll(); | |
await Job.destroyAll(); | |
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 | |
# | |
# Put this script as .git/hooks/post-commit | |
echo -e "JSON Posting post-commit Example Script\n" | |
LOG_JSON=$(git log -1 --pretty=format:'{\n "commit": "%H",\n "parent": "%P",\n "author": "%an <%ae>",\n "date": "%ad",\n "message": "%f"\n}' $@) | |
echo -e $LOG_JSON |
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
%sh | |
mkdir linkage | |
cd linkage/ | |
wget https://archive.ics.uci.edu/ml/machine-learning-databases/00210/donation.zip | |
unzip donation.zip | |
unzip 'block_*.zip' | |
ls |