Related: ipython-tutor hacking:
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
require 'test/unit' | |
class InputFaker | |
def initialize(strings) | |
@strings = strings | |
end | |
def gets | |
next_string = @strings.shift | |
# Uncomment the following line if you'd like to see the faked $stdin#gets |
- http://programmingforbiologists.org/why-should-you-take-class
- http://www.wired.com/wiredscience/2009/03/why-biology-students-should-learn-how-to-program/
- http://www.mailund.dk/index.php/2009/03/19/automating-scientific-grunt-work/
- http://www.mailund.dk/index.php/highlights/
- http://hackeducation.com/2012/03/17/what-every-techie-should-know-about-education/
- http://worrydream.com/KillMath/
Starting at Tue 2018-02-06 6:23pmPT we noticed a regular background job which connects to the Salesforce Bulk API via Python client started failing with the following message:
SSLHandshakeError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)
I am able to reproduce the failure to verify (and therefore connect to the API)
from outside Python, using the openssl s_client
command.
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
" Opens an edit command with the path of the currently edited file filled in | |
" Normal mode: <Leader>e | |
map <Leader>e :e <C-R>=escape(expand("%:p:h"), ' ') . "/" <CR> | |
" Opens a tab edit command with the path of the currently edited file filled in | |
" Normal mode: <Leader>te | |
map <Leader>te :tabe <C-R>=escape(expand("%:p:h"), ' ') . "/" <CR> | |
" Opens a vsplit command with the path of the currently edited file filled in | |
" Normal mode: <Leader>ve |
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
" http://stackoverflow.com/questions/762515/vim-remap-key-to-toggle-line-numbering | |
" source: http://stackoverflow.com/questions/4387210/vim-how-to-map-two-tasks-under-one-shortcut-key | |
let g:relativenumber = 0 | |
set nonumber | |
set relativenumber | |
function! ToggleRelativeNumber() | |
if g:relativenumber == 0 | |
let g:relativenumber = 1 | |
set number | |
set norelativenumber |
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
*.DS_Store | |
*.swp | |
*.swo |
So this is nascent thing, linking CVEs to rubygems https://twitter.com/jm/status/301735569527033856
Service idea:
- Send your Gemfile.lock to a service, get emailed when a pertinent CVE becomes known
- Easy tie-in via GitHub OAuth and their webhook push API
- Almost-as-easy tie-in for other platforms (storage and deploy) via after-commit hooks (efficient via etags)
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
{"followers"=>51, | |
"type"=>"User", | |
"url"=>"https://api.github.com/users/jasonm", | |
"gravatar_id"=>"8478f9ebe099ad853f022deeb2c1defe", | |
"html_url"=>"https://github.com/jasonm", | |
"gists_url"=>"https://api.github.com/users/jasonm/gists{/gist_id}", | |
"followers_url"=>"https://api.github.com/users/jasonm/followers", | |
"updated_at"=>"2013-01-20T00:41:57Z", | |
"email"=>"jason.p.morrison@gmail.com", | |
"hireable"=>true, |
NewerOlder