Jump to content




The Ctrl+V Game


860 replies to this topic

#41 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 03 June 2013 - 02:35 PM

View Postsuperaxander, on 03 June 2013 - 01:39 PM, said:

riscos-single

Nobody probably nows what it is :P
i had risc os on my rpi for like a day but i went back to rasbian

#42 Hinds

  • Members
  • 25 posts
  • LocationMy house.

Posted 03 June 2013 - 02:40 PM

0FNvCpWH

Pastebin ID to my lock program which doesn't even work correctly... ._.

#43 diegodan1893

  • Members
  • 164 posts
  • LocationSpain

Posted 03 June 2013 - 02:51 PM

[That’s right. I'm right beside you.]

Don't ask me where that comes from, because I don't know.

#44 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 03 June 2013 - 02:54 PM

:
* C=US
* ST=Texas
* L=Dallas
* O=EsperNet

...The hell?

#45 Imgoodisher

  • Members
  • 67 posts
  • LocationYes

Posted 03 June 2013 - 03:01 PM

N3AVNVQ1

it appears to be a pastebin code to a program I've been meaning to make a post for

#46 ikke009

  • Members
  • 224 posts
  • LocationSliding between sunbeams

Posted 03 June 2013 - 03:47 PM

http://nl.wikipedia....hylmethacrylaat
Oh right I was working on a synthesis report... better get back to doing that ^^

#47 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 03 June 2013 - 03:59 PM

Spoiler

Uh, my smartphone background iamge. LOL :D

#48 CoderPuppy

  • Members
  • 121 posts

Posted 03 June 2013 - 04:05 PM

local tArgs = { ... }-- Get all the files in the directory
local sDir = shell.dir()
if tArgs[1] ~= nil then
sDir = shell.resolve( tArgs[1] )
end
-- Sort into dirs/files, and calculate column count
local tAll = fs.list( sDir )
local tFiles = {}
local tDirs = {}for n, sItem in pairs( tAll ) do
if string.sub( sItem, 1, 1 ) ~= "." then
  local sPath = fs.combine( sDir, sItem )
  if fs.isDir( sPath ) then
   table.insert( tDirs, sItem )
  else
   table.insert( tFiles, sItem )
  end
end
end
table.sort( tDirs )
table.sort( tFiles )
if term.isColour() then
textutils.pagedTabulate( colors.lime, tDirs, colours.white, tFiles )
else
textutils.pagedTabulate( tDirs, tFiles )
end

Just modifying ls.

#49 billysback

  • Members
  • 569 posts

Posted 03 June 2013 - 05:05 PM



my friend... you no what. nevermind. It's there because it's there.

#50 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 03 June 2013 - 05:23 PM

Unfortunately, I can't participate at work. Sensitive stuff gets copied to my clipboard. Instead, I'll just edit my post later when I get home.
This actually sounds fun, as long as it stays civil.

#51 CoderPuppy

  • Members
  • 121 posts

Posted 03 June 2013 - 07:23 PM

function api()
local function split(str, sSeparator, nMax, bRegexp)
  assert(sSeparator ~= '')
  assert(nMax == nil or nMax >= 1)
  local aRecord = {}
  if #str > 0 then
   local bPlain = not bRegexp
   nMax = nMax or -1
   local nField=1 nStart=1
   local nFirst,nLast = str:find(sSeparator, nStart, bPlain)
   while nFirst and nMax ~= 0 do
    aRecord[nField] = str:sub(nStart, nFirst-1)
    nField = nField+1
    nStart = nLast+1
    nFirst,nLast = str:find(sSeparator, nStart, bPlain)
    nMax = nMax-1
   end
   aRecord[nField] = str:sub(nStart)
  end
  return aRecord
end
local color = term.isColor()
function request(url)
  if color then
   term.setTextColor(colors.green)
  end
  term.write('GET ' .. url)
  print('')
  term.setTextColor(colors.white)
  http.request(url)
  while true do
   local ev, p1, p2 = os.pullEvent()
   if p1 == url then
    if ev == 'http_failure' then
	 if color then
	  term.setTextColor(colors.red)
	 end
	 term.write('ERROR ' .. url)
	 print('')
	 term.setTextColor(colors.white)
	 return nil
    elseif ev == 'http_success' then
	 if color then
	  term.setTextColor(colors.green)
	 end
	 term.write('SUCCESS ' .. p2.getResponseCode() .. ' ' .. url)
	 print('')
	 term.setTextColor(colors.white)
	 return p2
    end
   end
  end
end
local function writeFile(path, contents)
  local part = 1
  while true do
   local fileH = fs.open(path, 'w')
   if fileH == nil then
    if part > 500 then return false end
    fs.makeDir(fs.combine(path, string.rep('../', part)))
    part = part + 1
   else
    fileH.write(contents)
    fileH.close()
    return true
   end
  end
end
function dirdown(root, dest)
  local filesH = request(root .. '/.files')
  fs.makeDir(dest)
  if filesH == nil then return false end
  local files = split(filesH.readAll(), '\n')
  for i = 1, #files do
   local file = files[i]
   down(root .. '/' .. file, fs.combine(dest, file))
  end
  filesH.close()
  return true
end
function down(file, dest)
  local fileH = request(file)
  if fileH == nil then
   return dirdown(file, dest)
  else
   writeFile(dest, fileH.readAll())
   fileH.close()
   return true
  end
end
function sit(src, filter)
  local filess = {fs.list(src)}
  local list = {}
  local indexes = {1}
  local path = {}
  local part = 1
  while part > 0 do
   repeat
    -- print(indexes[part])
    -- print(indexes[part] >= #filess[part])
    if indexes[part] > #(filess[part]) then
	 part = part - 1
	 table.remove(path, #path)
	 if part > 0 then
	  indexes[part] = indexes[part] + 1
	 end
	 break
    end
    -- print(part)
    table.insert(path, filess[part][indexes[part]])
    part = part + 1
    indexes[part] = 1
    local file = table.concat(path, '/')
    filess[part] = fs.list(fs.combine(src, file))
    -- print(#(filess[part]))
    -- print(file)
    if filter(file) then
	 table.insert(list, file)
    end
   until true
  end
  return list
end
function ignorer(ignoreFile)
  return function(file)
  end
end
end
if shell and shell.getRunningProgram():sub(-7) == 'sitdown' then
local sitdown = {}
setfenv(api, sitdown)
for k, v in pairs(_G) do
  sitdown[k] = v
end
api()
local function usage()
  print('sitdown sit <dir>')
  print('  Generate a .files from all the files in that directory and all sub directories')
  print('')
  print('sitdown down <url> <dest>')
  print('  Download url to dest')
  print('  Downloads directories by downloading all files in the .files file')
end
local argv = {...}
if #argv < 1 then
  usage()
elseif argv[1] == 'sit' then
  if #argv < 2 then
   usage()
  else
   local root = fs.combine(shell.dir(), argv[2])
   local h = fs.open(fs.combine(root, '.files'), 'w')
   if h == nil then error('Couldn\'t open ' .. fs.combine(root, '.files')) end
   h.write(table.concat(sitdown.sit(root, function() return true end), '\n'))
   h.close()
  end
elseif argv[1] == 'down' then
  if #argv < 2 then
   usage()
  else
   if #argv < 3 then
    argv[3] = select(3, string.find(argv[2], '/([^/]+)$'))
   end
   sitdown.down(argv[2], fs.combine(shell.dir(), argv[3]))
  end
end
else
setfenv(api, getfenv())
api()
end

Was pastebining my new library / tool.

#52 MudkipTheEpic

  • Members
  • 639 posts
  • LocationWhere you'd least expect it.

Posted 03 June 2013 - 08:29 PM

Ooh, Ill try this on my phone!

It is allowed to include this mini-map in your mod pack basically.
Please make a link to this topic and display the name of the ReiFNSK however.

Looks like I was checking licensing for my pack.

#53 CoderPuppy

  • Members
  • 121 posts

Posted 03 June 2013 - 08:48 PM

2.8284271247461903

Doing my math, graphing quadratics.
That's the square root of something.

#54 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 04 June 2013 - 12:16 AM

View PostETHANATOR360, on 03 June 2013 - 02:35 PM, said:

View Postsuperaxander, on 03 June 2013 - 01:39 PM, said:

riscos-single

Nobody probably nows what it is :P/>
i had risc os on my rpi for like a day but i went back to rasbian
I was talking about the version of it on the acorn computers

My clipboard(the whole page for some reason)
Spoiler


#55 Imque

  • Members
  • 134 posts

Posted 04 June 2013 - 07:40 AM

80.241.222.133


My plesk login? I think

#56 Mackan90096

  • Signature Abuser
  • 518 posts
  • LocationIn my basement.

Posted 04 June 2013 - 08:02 AM

guess for anyone that's not a Duck

#57 Frederikam

  • Members
  • 112 posts
  • LocationDenmark

Posted 04 June 2013 - 08:06 AM

I have absolutely no idea of what i am about to post :D



Seems like nothing was on there.

Meh this post is pointless now.

#58 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 04 June 2013 - 08:13 AM

Posted Image

toatally not putting things in your coffe

#59 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 04 June 2013 - 08:15 AM

Forums
Copying a link for a guy on my server :P

#60 Guest_ZetaNeta_*

  • Guests

Posted 04 June 2013 - 03:38 PM

3.14159265359
Just wrote a reply for Cloudy's private msg.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users