I hereby claim:
- I am robwhitaker on github.
- I am rhitakorrr (https://keybase.io/rhitakorrr) on keybase.
- I have a public key ASBlF6QcOPFPrgthQNsDDvvoGgq58PhRjdSPRBQBgkFWMQo
To claim this, I am signing this object:
if has lorri; then | |
old_path="$PATH" | |
eval "$(lorri direnv)" | |
export PATH="$PATH:$old_path" | |
fi |
I hereby claim:
To claim this, I am signing this object:
set smoothscroll | |
set autohidecursor | |
set noautofocus | |
set sortlinkhints | |
set scalehints | |
set autoupdategist | |
let searchengine duckduckgo = ["https://duckduckgo.com", "https://duckduckgo.com/?q="] | |
let searchengine ecosia = ["https://www.ecosia.org", "https://www.ecosia.org/search?q="] | |
let searchengine startpage = ["https://www.startpage.com", "https://www.startpage.com/do/search?query="] |
Note:
You can download Tweego from the (hard to find) Tweego page on the Motoslave website. Compiled executables are available for Windows, Mac, and Linux, or you can follow the link on that page to Bitbucket to compile it yourself from source (instructions on Bitbucket).
There is no installer. Once you download the executable, add it to your PATH
and you're all set to use Tweego...
function mindPsAndQs(input) { | |
return input.match(/[PQ]+/g).reduce(function(acc, str) { | |
return Math.max(acc, str.length); | |
}, 0); | |
} |
function hasDuplicates(arr) { | |
var exists = {}; | |
for(var i = 0; i < arr.length; i++) | |
if(exists[arr[i]]) | |
return true; | |
else | |
exists[arr[i]] = true; | |
return false; | |
} |
// Write a function `hipsterfy(sentence)` that takes takes a string containing | |
// several words as input. Remove the last vowel from each word. `'y'` is not a vowel. | |
function isVowel(char) { | |
return ["a","e","i","o","u"].indexOf(char.toLowerCase()) !== -1; | |
} | |
function hipsterfy(str) { | |
return str.split("").reverse().reduce(function(acc, char) { | |
if(isVowel(char) && acc.needLastVowel) |
import Graphics.Element exposing (..) | |
import Window | |
import Graphics.Input exposing (..) | |
main : Signal Element | |
main = Signal.map content Window.dimensions | |
divI a b = round (toFloat a / b) | |
content : (Int, Int) -> Element |
function ReadyListener(config) { | |
this.properties = config || {}; | |
this.onReady = function() {}; | |
} | |
ReadyListener.prototype.ready = function(key) { | |
this.properties[key] === false && (this.properties[key] = true); | |
var isReady = true; | |
for(k in this.properties) isReady = isReady && this.properties[k]; | |
isReady && this.onReady(); |