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 sys | |
| import re | |
| import requests | |
| r = sys.argv[1] | |
| parts = r.split(" ") | |
| url = parts[1][1:-1] | |
| print url | |
| parts = re.findall("-H '(.*?)'", r) |
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
| Error detected while loading xmonad configuration file: /home/samet/.xmonad/xmonad.hs | |
| xmonad.hs:64:20: | |
| Couldn't match expected type `X ()' | |
| against inferred type `xmonad-0.9.1:XMonad.Core.X ()' | |
| In the `logHook' field of a record | |
| In the first argument of `xmonad', namely | |
| `defaultConfig | |
| {modMask = mod1Mask, terminal = "urxvtc -bg black -fg gray +sb", | |
| borderWidth = 1, normalBorderColor = myNormalBGColor, |
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 XMonad | |
| import XMonad.Layout | |
| import XMonad.Layout.NoBorders (noBorders) | |
| import XMonad.Layout.PerWorkspace | |
| import XMonad.Layout.LayoutHints | |
| import XMonad.Layout.ThreeColumns | |
| import XMonad.Hooks.DynamicLog ( PP(..), dynamicLogWithPP, dzenColor, shorten, wrap, defaultPP ) | |
| import XMonad.Hooks.UrgencyHook | |
| import XMonad.Util.Run (spawnPipe) | |
| import qualified XMonad.StackSet as W |
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 wordcram.*; | |
| import wordcram.text.*; | |
| WordCram wordCram; | |
| void setup() { | |
| size(800, 600); | |
| background(255); | |
| colorMode(HSB); | |
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
| ## | |
| # Usage: | |
| # python wordle_csv_upload.py /tmp/file.csv | |
| ## | |
| import webbrowser | |
| import sys | |
| filename = sys.argv[1] | |
| csv_file = open(filename) |