Skip to content

Instantly share code, notes, and snippets.

View lagr's full-sized avatar
🙃
Happily coding away

Lars Greiving lagr

🙃
Happily coding away
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lagr on github.
  • I am lagr (https://keybase.io/lagr) on keybase.
  • I have a public key ASDFGFHUlxCtRbq1IsbYn9ND2AB2SxCUmNhirsmuhvYsZQo

To claim this, I am signing this object:

# 99 bottles of coke on the wall
# 99 bottles of coke
# Take one down, pass it around
# 98 bottles of coke on the wall
# 98 bottles of coke on the wall
# 98 bottles of coke
# Take one down, pass it around
# 97 bottles of coke on the wall
# Tweets können höchstens 240 Zeichen lang sein.
# Wenn der Nutzer einen längeren Tweet senden möchte, müssen wir ihn auf mehrere Tweets aufteilen.
text = 'test 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170'
texte = []
# Text korrigieren mit if/else. Ist der Tweet unter 240 Zeichen wird er gepostet, ist er über 240 Zeichen wird eine Benachrichtigung an den Nutzer geschickt,dass der geschriebene Text zu viele Zeichen enthält und gekürzt oder aufgeteilt werden muss
# hier sollte der Text aufgeteilt werden
#Text aufteilen
# solange wie dabei eine nicht-leere Nachricht entsteht
@lagr
lagr / github.com.js
Last active December 10, 2015 12:21
$(function() {
addProgressBar = function() {
checked = $('.discussion-timeline input:checkbox:checked.task-list-item-checkbox').length
total = $('.discussion-timeline .task-list-item-checkbox').length
progress = (checked / total) * 100.0
bar = '<div class="discussion-sidebar-item progress">'
bar += '<h3 class="discussion-sidebar-heading">Progress</h3>'
bar += '<span class="progress-bar">'
bar += '<span class="progress" style="width: ' + progress + '%">'
bar += '&nbsp;'