coding   88077

« earlier    

The Trump administration is about to officially OK the Keystone XL pipeline. | Grist
The Trump administration is about to officially OK the Keystone XL pipeline.
grist  coding 
9 hours ago by slogger
Arctic sea ice peaks in the winter. For the third year in a row, it’s at a record low. | Grist
Arctic sea ice peaks in the winter. For the third year in a row, it’s at a record low.
grist  coding 
10 hours ago by slogger
PEP 20 -- The Zen of Python | Python.org
"Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!"
python  programming  coding  development  philosophy 
11 hours ago by colm.mcmullan
bash - Read a file line by line assigning the value to a variable - Stack Overflow
#!/bin/bash
while IFS='' read -r line || [[ -n "$line" ]]; do
echo "Text read from file: $line"
done < "$1"

IFS='' (or IFS=) prevents leading/trailing whitespace from being trimmed.

-r prevents backslash escapes from being interpreted.

|| [[ -n $line ]] prevents the last line from being ignored if it doesn't end with a \n (since read returns a non-zero exit code when it encounters EOF).
coding  bash  read-a-file 
12 hours ago by richtbreak
To reduce obesity and depression, we need more nature in our lives. | Grist
To reduce obesity and depression, we need more nature in our lives.
grist  coding 
yesterday by slogger

« earlier    

related tags

!top  10centuries.org  2016  2017  abscond  ack  adn(app.net)  alto  android  animation  api  app  art  automation  backend  bash  beginner  blog  blogs  brief  c  camps  career  change  civic-tech  civil-service  clojure  code  comparison  computers  computerscience  courses  csharp  css  cyberpunk  datamining  design+systems  design  dev  devdocs  developer  development  devops  digitalhumanities  digitalscholarship  diigo_-_nick_goffee's_bookmarks  docs  documentation  edu_theory  education  fast  framework  frontend  fsm  fullstack  gamedev  games  gender  generative  github  good  google  grist  high-school  history  hn_discussions  ifttt  inbox  interview  issue  it  javascript  js  kentucky  language  learn  learning  linked-list  list  markdown  math  maths  may  memory  microsoft  mining  mobile  mobx  near  node.js  nodejs  nonprofit  ocw  offline  online  opensource  optimization  palo  performance  philosophy  plugins  pnut.io  pocket  productivity  program  programming  projects  python  qntra  questions  rails  rameznaam  react  read-a-file  refactoring  reference  remote  resources  responsive  retraining  roadmap  ruby  social  software  solutions  storage  styleguide  styleguides  summer-camps  summer  sysadmin  tech  technique  technology  techspirational  testing  tips  tools  tour  tours  tutorial  tutorials  unread  ux  vanguardblog  vim  visual  volunteer  web  webdev  work  zip  zipfile 

Copy this bookmark:



description:


tags: