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 java.security.SecureRandom; | |
import java.security.cert.CertificateException; | |
import java.security.cert.X509Certificate; | |
import javax.net.ssl.HostnameVerifier; | |
import javax.net.ssl.HttpsURLConnection; | |
import javax.net.ssl.SSLContext; | |
import javax.net.ssl.SSLSession; | |
import javax.net.ssl.TrustManager; | |
import javax.net.ssl.X509TrustManager; |
In a nutshell it is just the following:
- got a task/requirements/problem which can be solved with a computer
- implement a solution
- see that solution actually works (most of the time)
- see that solution fails in some cases
- iterate from 2) to 5) until the original task/requirement/problem is resolved to its full extend
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
application-name@0.0.16 /home/outbounder/projects/outbounder/node-thequest | |
├─┬ browserify@1.16.1 | |
│ ├─┬ buffer-browserify@0.0.3 | |
│ │ └── base64-js@0.0.2 | |
│ ├── coffee-script@1.3.3 | |
│ ├── commondir@0.0.1 | |
│ ├── crypto-browserify@0.1.1 | |
│ ├─┬ deputy@0.0.4 | |
│ │ └── mkdirp@0.3.4 | |
│ ├─┬ detective@0.2.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
var bodies | |
var attributes_fetch = imap.fetch(emailId, { | |
struct: true | |
}); | |
attributes_fetch.on('message', function(msg, seqno) { | |
msg.once('attributes', function(attrs) { | |
// just extracts ["HEADER", "1", "1.MIME"] from a message | |
// which has "HEADER" and "1", "2" parts, where "2" is attachment | |
bodies = constructBodies(attrs) |
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
// Generated by CoffeeScript 1.3.1 | |
/* | |
Backbone.BindTo | |
Author: Radoslav Stankov | |
Project site: https://github.com/RStankov/backbone-bind-to | |
Licensed under the MIT License. | |
*/ |
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 | |
NODE=$1 | |
NVMDIR=$2 | |
NVM=$NVMDIR/nvm.sh | |
echo "installing node.js $1" | |
hash nvm 2>&- || { | |
echo "couldn't find nvm, checking for $NVM" | |
test -e $NVM || { |
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
var allCount = items.length; | |
var handleSave = function(err) { | |
if(err) { | |
allCount = 0; // this will prevent sending success: true if invoked again... | |
res.send({ success: false, msg: err}, 400); | |
return; | |
} | |
allCount -= 1; | |
if(allCount == 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
#!/bin/bash | |
NODE="v0.4.11" | |
NVMDIR=~/.nvm | |
NVM=~/.nvm/nvm.sh | |
echo "installing projectman-repl" | |
hash nvm 2>&- || { | |
echo "couldn't find nvm, sourcing from $NVM" | |
test -e $NVM || { | |
echo "couldn't find $NVM -> installing..." |
NewerOlder