Skip to content

Instantly share code, notes, and snippets.

View dasgoll's full-sized avatar

dasgoll

  • Amman, Jordan
View GitHub Profile
@dasgoll
dasgoll / reddits
Created October 16, 2013 21:55
reddits
http://www.reddit.com/r/Englishlearning
http://www.reddit.com/r/languagelearning
http://www.reddit.com/r/languagecomics
http://www.reddit.com/r/linguistics
http://www.reddit.com/r/learnspanish
http://www.reddit.com/r/Spanish
mkdir ~/home/outlook
#File selection
readpst -o ~/home/outlook -r `zenity --file-selection`
find ~/home/outlook -type d | tac | grep -v '^~/home/outlook$' | xargs -d '\n' -I{} mv {} {}.sbd
find ~/home/outlook.sbd -name mbox -type f | xargs -d '\n' -I{} echo '"{}" "{}"' | sed -e 's/\.sbd\/mbox"$/"/' | xargs -L 1 mv
from translate import Translator
goodmorning_text = 'good morning'
to_lang = 'ar'
translator= Translator(to_lang, 'en')
out = translator.translate(goodmorning_text)
print(out)
In Evernote, create a “template” note. Think of your template note as a sample note, the example for all other notes of its type. You’ll want this note to very generic, useful again and again. You can create multiple templates, though, so don’t be afraid to make lots of templates for different notebooks, projects, clients, or whatever you’re working on.
Next, you’re going to export the note. Find the note in your list of notes within that notebook and right-click on it. Choose “Export Note...” and again, you’ll want to export it as the ENEX filetype. Select the Evernote templates folder we created earlier as the destination.
Now you can open your exported note in a text editor and delete the timestamp. The timestamp is everything between the <created></created> and the <updated></updated> tags. Delete all that mess. Nothing should be in there. If you don’t get that timestamp cleared out, when you eventually reimport your template, it will have the wrong dates attached.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export2.dtd">
<en-export export-date="20120727T073610Z" application="Evernote" version="Evernote Mac 3.0.5 (209942)">
<note><title>Vim Tips</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">
<en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
yank for copy, delete for cut, put for parse
<div><br/></div>
<div>Move in context, not position</div>
<div>/ search forward</div>
// and have three files under assets called f1.txt f2.txt f3.txt
package aexp.assets;
import android.app.Activity;
import android.content.res.AssetManager;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import java.io.IOException;
Suppose if the resolution of a mobile phone is 1920*1080 and diagonal size is 5 inch then the ppi will be 441 but how to calculate it??
Assuming the pixels are square. If they are not, you need the actual L and H dimensions.
the diagonal is √(1920² + 1080²) = 2203
2203 pixels / 5 inch = 441 ppi
I got those links from Web Platform Installer.
- Install IIS Express 8.0
http://download.microsoft.com/download/C/C/C/CCCB55BE-82C3-4B59-BF00-0B4ED353AE12/iisexpress_8_0_RC_X86_en-US.msi
- Install WebMatrix 3.0
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5b9510a1-bc42-4323-90ab-adf4daaaa2f0
#!/bin/sh
sudo apt-get install git mono-mcs mono-gmcs autoconf libtool g++ libglib2.0-cil-dev libgtk2.0-cil-dev libglade2.0-cil-dev libgnome2.0-cil-dev libgconf2.0-cil-dev
mkdir mono
cd mono
git clone https://github.com/mono/mono.git
git clone https://github.com/mono/monodevelop.git
git clone https://github.com/mono/xsp.git
git clone https://github.com/mono/mono-addins.git
cd mono
#!/bin/sh
### BEGIN INIT INFO
# Provides: lxc-docker
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Linux container runtime
# Description: Linux container runtime