This file contains 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 python3.1 | |
import os | |
def docount(string): | |
lines = string.split("\n") | |
line_count = len(lines) | |
word_count = 0 | |
char_count = 0 |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>BackgroundAlphaInactive</key> | |
<real>0.89893424855491333</real> | |
<key>BackgroundBlurInactive</key> | |
<real>0.20000000000000001</real> | |
<key>BackgroundColor</key> | |
<data> |
This file contains 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
for (Message message : _mailbox) | |
{ | |
message.save(ab, ps); | |
} |
This file contains 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
public Contact searchContact(String nickName) | |
{ | |
for (int n = 0; n < _contactList.size(); n++) | |
{ | |
Contact c = _contactList.get(n); | |
if (c != null && nickName.equals(c.getNickName())) | |
{ | |
return _contactList.get(n); | |
} | |
} |
This file contains 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
public Contact searchContact(String nick) | |
{ | |
for (Contact contact : _contactList) | |
{ | |
String testnick = contact.getNickName(); | |
if (testnick != null && testnick.equals(nick)) | |
{ | |
return contact; | |
} |
This file contains 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 React from 'react' | |
function topPosition(domEl) { | |
if (!domEl) { | |
return 0 | |
} | |
return domEl.offsetTop + topPosition(domEl.offsetParent) | |
} |
This file contains 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 | |
pandoc -s ${1}.tex -o ${1}.pdf |
This file contains 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
(ns MY_NAMESPACE.analytics | |
(:require [cljsjs.google-analytics] | |
[autotrack])) | |
(def tracking-code "UA-XXXXX-Y") | |
(defn start [] | |
(js/ga "create" tracking-code "auto") | |
(js/ga "require" "autotrack") | |
(js/ga "send" "pageview")) |
This file contains 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
/*! sanitize.css v5.0.0 | CC0 License | github.com/jonathantneal/sanitize.css */ | |
/* Converted to js style objects for use in css-in-js solutions like glamor, jss, aphrodite, etc */ | |
/* Gotcha: b, strong may not be correct boldness in safari 6? see line 71 */ | |
export default { | |
'*, ::before, ::after': { | |
backgroundRepeat: 'no-repeat', | |
boxSizing: 'inherit', |
This file contains 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
; Activate window after idle timeout | |
; Script for AutoIt (Windows) | |
; by Andrew Suzuki | |
#include <WinAPISys.au3> | |
$title = "YOUR WINDOW TITLE HERE" | |
$minutes = 2 ; every two minutes | |
$sleepTimeMillis = 5*1000 ; check every 5 seconds |