50 Links pulled from Hacker News
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
i=1 | |
while (i<=100): | |
threeDivides = i%3==0 | |
fiveDivides = i%5==0 | |
if (threeDivides and fiveDivides): | |
print("CracklePop") | |
elif(threeDivides): | |
print("Crackle") | |
elif(fiveDivides): | |
print("Pop") |
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 qualified Data.Sequence as Sequence | |
import Control.Monad | |
import Data.Maybe | |
import System.Random | |
data Move = Move Position Space | |
newtype Position = Position (Int, Int) | |
newtype Board = Board (Sequence.Seq Space) |
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
root@d4fd30cf9ff1:/# node /node_modules/appium --version | |
Error: Cannot find module 'appium-remote-debugger' | |
at Function.Module._resolveFilename (module.js:538:15) | |
at Function.Module._load (module.js:468:25) | |
at Module.require (module.js:587:17) | |
at require (internal/module.js:11:18) | |
at Object.<anonymous> (/node_modules/appium/node_modules/appium-xcuitest-driver/build/lib/commands/context.js:15:29) | |
at Module._compile (module.js:643:30) | |
at Object.Module._extensions..js (module.js:654:10) | |
at Module.load (module.js:556:32) |
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
package org.testobject.appium.tests.android.basic; | |
import io.appium.java_client.android.AndroidDriver; | |
import org.junit.Test; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import java.net.URL; | |
public class NoResetWebTest { |
After using NixOS for a year, I've found it to be a great operating system. When the software I need is on nixpkgs, things work out great. When I need to install software from outside of nixpkgs, though, it can become a pain. Trying to figure out the quirks of some closed source application can become pretty complicated. It would be great to package it and contribute it back to nixpkgs, but a lot of the time I just want to have the application working as soon as possible.
Since Ubuntu is a more standard linux distribution, I hope that it's better supported by some of these closed source applications. By dual booting, it's possible to get the best of both worlds.