Skip to content

Instantly share code, notes, and snippets.

<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<script src='//ramnathv.github.io/rCharts/libraries/widgets/polycharts/js/polychart2.standalone.js' type='text/javascript'></script>
<style>
.rChart {
display: block;
@SunnyBingoMe
SunnyBingoMe / a.md
Created November 6, 2012 08:52
test php

#!/bin/bash
thisScriptFilename=`basename $0`
usage="Usage: ./$thisScriptFilename."
dbug=0
dbugOk=0
vbose=0
function say(){
echo $1
#!/bin/bash
# this file should be ln -s to home
source /etc/profile
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
PATH="/usr/local/foxit_reader_1_1:$PATH:/sbin:/usr/sbin:/usr/local/bin:/home/ats/bin:/home/solo/bin"
PS1='`a=$?;
// hexo\node_modules\hexo-migrator-wordpress\node_modules\to-markdown\src\to-markdown.js: line 70
{
patterns: 'img',
type: 'void',
replacement: function(str, attrs, innerHTML) {
var src = attrs.match(attrRegExp('src')),
alt = attrs.match(attrRegExp('alt')),
title = attrs.match(attrRegExp('title'));
// after line 70. hot-fix: add this if-statement
if (src == null){
@SunnyBingoMe
SunnyBingoMe / 10_linux
Created December 22, 2016 15:58
example of 10_linux for removing gfxmode (line 150), tested in ubuntu 16.04.1 LTS
#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@SunnyBingoMe
SunnyBingoMe / source.list
Created December 22, 2016 16:16
example of apt source, with cdn (i guess) instead of specific country repo. for ubuntu 16.04.1
#deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
sudo systemctl enable multi-user.target --force && \
sudo systemctl set-default multi-user.target && \
sudo reboot
@SunnyBingoMe
SunnyBingoMe / caffe.install.sh
Last active April 17, 2018 22:14
Caffe installing script for ubuntu 16.04 support Cuda 8
# ref http://t.cn/RYlajoc
# sunny: needs hdf5, protobuf
sudo apt-get install -y libhdf5-10 libhdf5-serial-dev libhdf5-dev libhdf5-cpp-11 && \
export CPATH="/usr/include/hdf5/serial/"
apt-get install -y libprotobuf-dev protobuf-compiler libsqlite3-dev
# sunny: needs gflags
#apt-get install -y cmake
@SunnyBingoMe
SunnyBingoMe / external_links.js
Created August 9, 2018 07:57
open external links in new tabs, i.e. target="_blank"