This file contains 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
ex_bbm_ch2 |
This file contains 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
all: | |
gcc main.cpp -o kill | |
This file contains 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 |
This file contains 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 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 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 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 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 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 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) { |
OlderNewer