Skip to content

Instantly share code, notes, and snippets.

View metakermit's full-sized avatar

Dražen Lučanin metakermit

View GitHub Profile
#! /bin/bash
sudo add-apt-repository -y ppa:kermit666/ppa
sudo apt-get update
sudo apt-get -y install popcorn
. ~/.config/user-dirs.dirs
cp /usr/share/applications/popcorn.desktop "$XDG_DESKTOP_DIR/popcorn.desktop"
chmod +x "$XDG_DESKTOP_DIR/popcorn.desktop"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@metakermit
metakermit / scipy-gsoc.md
Last active December 17, 2015 01:10
Dražen's GSoC 2013 SciPy proposal

SciPy: Improving Numerical Integration of Time Series

The goal of this project is to implement better interoperation between scipy.integrate and pandas.TimeSeries. Currently, time-stamped arrays have to be converted to an integer-based domain (which incurs a computational overhead) in order for numeric integration to work. The aim is to improve this by adding runtime TimeSeries detection and calculation of numerical integrals (e.g. the trapezoidal rule) without any domain transformations by

@lfac-pt
lfac-pt / gist:5073918
Last active December 14, 2015 10:39
Snippet to add the page number to a reveal.js presentation. (Does not add a number to the first slide!)
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>
function currentPageFormatter(event) {
var formattedStr;
if (event.indexh === 0) {
return "";
}
formattedStr = event.indexh;
@cobyism
cobyism / gh-pages-deploy.md
Last active April 18, 2024 13:44
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@agnoster
agnoster / README.md
Last active April 6, 2024 22:35
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@douglasmiranda
douglasmiranda / gist:2527687
Created April 29, 2012 03:07
fixing dropbox - Ubuntu 12
#When dropbox is not working on ubuntu 12
#you tried to execute on terminal:
#dropbox start
#and the error is something like this:
#Starting Dropbox.../home/YOUR_USER/.dropbox-dist/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required #by /usr/lib/x86_64-linux-gnu/libproxy.so.1)
#Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so
#Done!
#FIX
cd /home/YOUR_USER/.dropbox-dist/