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
#!/usr/bin/env ruby | |
mode = "workspace" | |
style = nil | |
markup = nil | |
if ARGV[0] then | |
mode = "nothing" | |
style = ARGV[0] |
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 | |
# RUN ON CHANGE | |
if [[ "$unamestr" == 'Linux' ]]; then | |
while [ 1 ]; do | |
clear\ | |
&& echo "[Running \"$@\" on files changes in $(pwd) at $(date +'%r')]"\ | |
&& echo ""\ | |
&& echo "$@" > /home/seve/Desktop/lastroc.sh\ |
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
class Point | |
def initialize(x,y) | |
@x = x | |
@y = y | |
end | |
def x | |
@x | |
end | |
def y | |
@y |
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 | |
for i in $(seq 1 $1) | |
do | |
${@:2} | |
done |
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 | |
# feeder script | |
# Constantly feeds user input to given command and displays output | |
fullStr="" | |
while true; do | |
read -n 1 -s nextChar |
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
// Copyright (c) 2015, <your name>. All rights reserved. Use of this source code | |
// is governed by a BSD-style license that can be found in the LICENSE file. | |
/// The SiaIExx library. | |
library SiaIExx; | |
import 'dart:async'; | |
import 'dart:convert'; | |
import 'package:http/http.dart' as http; |
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
# This is the default .slate file. | |
# If no ~/.slate file exists this is the file that will be used. | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY | |
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY | |
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY |
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 subprocess | |
import json | |
import sys | |
workspaces = json.loads(subprocess.check_output("i3-msg -t get_workspaces", shell=True)); | |
activeWorkspaceNum = None | |
activeWorkspaceName = None | |
for workspace in workspaces: | |
if workspace["visible"]: | |
activeWorkspaceNum = workspace['num'] |
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
# This script is for automatically labeling all the images in a directory with their | |
# names (for lab reports, technical documents etc.). Uses ImageMagick's convert command. | |
# Currently windows specific, but it should be easy to make compatible with linux | |
# This may also be possible as a one-liner with image magick. | |
import os | |
import os.path | |
try: os.system('rmdir labeled /s /q') | |
except: pass |
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 shutil | |
import os | |
from os.path import join | |
import time | |
import sys | |
""" | |
USAGE | |
python filetype_sorter.py <target directory> | |
""" | |
directory = sys.argv[1] |
OlderNewer