As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| (* | |
| Export All Safari Tabs in All Open Windows to a Markdown File | |
| July 13, 2015 | |
| // SCRIPT PAGE | |
| http://hegde.me/urlsafari | |
| // ORIGINAL SCRIPT ON WHICH THIS SCRIPT IS BUILT | |
| http://veritrope.com/code/export-all-safari-tabs-to-a-text-file |
| #Download Elementary OS from here: | |
| #http://sourceforge.net/projects/elementaryos/files/stable/ | |
| #First you update your system | |
| sudo apt-get update && sudo apt-get dist-upgrade | |
| #Install Google Chrome | |
| wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
| sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |
| require 'rubygems' | |
| require 'open-uri' | |
| require "hpricot" | |
| html = open('http://www.amzs.si/?podrocje=18').read | |
| doc = Hpricot(html) | |
| count_ary = (doc/"td.DefaultTemplate/table/tr").to_ary | |
| countries = count_ary[3..41] |
| # Purpose: | |
| # Create a static library for iPhone from within XCode | |
| # Because Apple staff DELIBERATELY broke Xcode to make this impossible from the GUI (Xcode 3.2.3 specifically states this in the Release notes!) | |
| # ...no, I don't understand why they did such a stupid thing either! | |
| # | |
| # Author: Adam Martin - http://twitter.com/redglassesapps | |
| # Based on: original script from Eonil (main changes: Eonil's script WILL NOT WORK in Xcode GUI - it WILL CRASH YOUR COMPUTER) | |
| # | |
| # More info: see this Stack Overflow question: http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 |
| //Debug.h | |
| #import <Foundation/Foundation.h> | |
| #ifdef DEBUG | |
| #define DebugLog( xx, ...) _DebugLog(@"%s(%d): " xx, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) | |
| #else | |
| #define DebugLog( s, ... ) ((void)0) | |
| #endif | |
| // | |
| // iOS4Check.h | |
| // | |
| // Thank you: | |
| // http://cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html | |
| // | |
| // Created by Vid Tadel on 7/9/10. | |
| // | |
| #import <UIKit/UIKit.h> |
| #!/bin/sh | |
| # | |
| # http://www.cimgf.com/2009/12/23/automatically-save-the-dsym-files/ | |
| # | |
| if [ "$BUILD_STYLE" == "Debug" ]; then | |
| echo "Skipping debug" | |
| exit 0; | |
| fi |
| #import <Foundation/Foundation.h> | |
| #ifdef DEBUG | |
| #define DebugLog( xx, ...) NSLog(@"%s(%d): " xx, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) | |
| #else | |
| #define DebugLog( s, ... ) ((void)0) | |
| #endif |
| #podaj vektor atributov, katere | |
| #funkcija odstrani iz dataseta in izracuna napovedi | |
| #atributi so podani z indeksom (da jih lazje odstranimo) | |
| odstrani.atr.in.izr.napovedi <- function(dataset, attributes, model, formula, ...) { | |
| cat("OHAI!1!\n") | |
| results <- "" | |
| predictions <- "" | |
| for(i in 1:length(attributes)) { | |
| pr <- izracunaj.napovedi(formula, model, dataset[,-attributes[i]],...) | |
| #predictions <- c(predictions,pr) |