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
| # empty the file | |
| touch positive.csv; | |
| # loop the file | |
| cat mixed.csv | while read line; do | |
| # store the 2nd column minus quotes in the variable X | |
| X=$(echo $line | cut -d ',' -f2 | tr -d '"'); | |
| # if it's greater than 0, put it into the output file | |
| if [[ $X -gt 0 ]] then | |
| echo $line >> positive.csv; | |
| fi; |
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 | |
| name="Emily Brinsmead" | |
| windowname=$(xdotool getactivewindow getwindowname) | |
| width=$(xdotool search --name "Emily Brinsmead" getwindowgeometry --shell | grep "WIDTH=" | tr -cd "[:digit:]")-40; | |
| #echo $windowname; | |
| if [ "$windowname" == "$name" ] | |
| then | |
| echo "focus" | |
| xdotool search --name "$name" windowmove --relative -- $((36-$width)) 'y' | |
| else |
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
| // constants | |
| var MISSED_FRAMES = 10; | |
| // application | |
| var readline = require('readline'); | |
| var rl = readline.createInterface({ | |
| input: process.stdin, | |
| output: process.stdout | |
| }); |
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
| // sort the list in order O(n^n^n) | |
| function jumblesort(list){ | |
| while(!sorted(list)){ | |
| list = shuffle(list); | |
| } | |
| return list; | |
| } | |
| function shuffle(list) { | |
| for(var i = list.length - 1; i > 0; i--) { |
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
| #include "stdio.h" | |
| #include <stdlib.h> | |
| typedef struct Item Item; | |
| struct Item { | |
| int value; | |
| Item* next; | |
| }; |
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
| var ffmpeg = require("fluent-ffmpeg"); | |
| var taglib = require("taglib"); | |
| var ytdl = require("ytdl"); | |
| var fs = require("fs"); | |
| var url = 'http://www.youtube.com/watch?v=gXK5YpoadCU'; | |
| var title = ""; | |
| var authot = ""; |
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
| 'editor': | |
| 'fontSize': 16 | |
| 'showInvisibles': true | |
| 'showIndentGuide': true | |
| 'invisibles': | |
| 'cr': 'EW! CR!' | |
| 'tab': 'TAB?' | |
| 'eol': '' | |
| 'core': | |
| 'themes': [ |
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
| find -type f | xargs du --block-size=1K | sort -rn |
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
| * * * * * DISPLAY=:0 /usr/bin/bash /home/benkaiser/.i3/update_background |
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
| # Conky, a system monitor, based on torsmo | |
| # | |
| # Any original torsmo code is licensed under the BSD license | |
| # | |
| # All code written since the fork of torsmo is licensed under the GPL | |
| # | |
| # Please see COPYING for details | |
| # | |
| # Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen | |
| # Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) |