while read line; do echo -n "$line" | wc -c; done< f1
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
# Say I have such classes A, B, C, ..., Y, and Z that do different things, | |
# and classes AComment, BComment, CComment, ..., YComment and ZComment | |
# that record comments on instances of class A, B, ..., Y and Z respectively. | |
# All XComment classes share the same attributes except one property | |
# that is is dependent on the class the comment is for. | |
# e.g. AComment has a property 'a' and BComment has a property 'b'. | |
class A(): | |
def __init__(self): | |
print 'init an instance of class A' |
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
;; Requisites: Emacs >= 24 | |
;; INSTALL PACKAGES | |
;; -------------------------------------- | |
(prefer-coding-system 'utf-8) | |
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.org/packages/") t) | |
(package-initialize) |
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
!macro ProcessEnvPrependPath UN | |
;; ref: http://stackoverflow.com/a/32384667/1292238 | |
!ifndef ERROR_ENVVAR_NOT_FOUND | |
!define ERROR_ENVVAR_NOT_FOUND 203 | |
!endif | |
!if "${NSIS_PTR_SIZE}" <= 4 | |
!include LogicLib.nsh | |
Function ${UN}ProcessEnvPrependPath ; IN:Path OUT:N/A | |
System::Store S | |
Pop $1 |
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
!macro ProcessEnvPrependPath UN | |
;; ref: http://stackoverflow.com/a/32384667/1292238 | |
!ifndef ERROR_ENVVAR_NOT_FOUND | |
!define ERROR_ENVVAR_NOT_FOUND 203 | |
!endif | |
!if "${NSIS_PTR_SIZE}" <= 4 | |
!include LogicLib.nsh | |
Function ${UN}ProcessEnvPrependPath ; IN:Path OUT:N/A | |
System::Store S | |
Pop $1 |
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 | |
OPENSSL_VERSION="1.0.1g" | |
curl -O http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz | |
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
mv openssl-$OPENSSL_VERSION openssl_i386 | |
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
mv openssl-$OPENSSL_VERSION openssl_x86_64 | |
cd openssl_i386 |
OlderNewer