Your first goal is to recreate this page from scratch. Don't inspect the source! Try and create it on your own. Use google as much as you can for stuff you don't know, can't remember, or are unsure of. Really you just don't want to look at the source to see how they did it. Don't worry about mobile support yet. Focus on just emulating the desktop appearance.
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 praw | |
import sys | |
import time | |
# Setup | |
# 1. Install Python 3.6+ <https://www.python.org/downloads/> and PRAW | |
# <https://praw.readthedocs.io/en/latest/getting_started/installation.html>. | |
# 2. Create a script here <https://www.reddit.com/prefs/apps/> and | |
# set the script ID and secret below, as well as your username and | |
# password. |
I'm getting the error from the title when attempting to deploy a VM. I'm using the .NET library. My code pretty much follows the MSDN article "Get Started with the Management Libraries for .NET" (which seems to have many flaws, as it does not work verbatim).
Deviations from that tutorial are:
- The method of AD auth described in the tutorial doesn't work ("the request body must contain the following parameter: 'client_secret or client_assertion'."), so I used certificate-based auth.
- The data center used in the tutorial apparently doesn't work for accounts on the free credit, so I'm using east Asia (for everything).
- For simplicity, I've created the storage account and service through the portal and am creating just the VM programmatically (eventually it'd all be made programmatically). I've tested making the service programmatically and that works fine. Although the storage account can't seem to be done ("the 'Authorization' header is not present or provided in an invalid format").
As an aside, wh
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
object Language { | |
def langs: Try[Seq[Language]] = { | |
Try { val m = for { | |
l<- current.configuration.getConfig("langs") | |
a <- l.getConfig("mapping") | |
} yield a | |
m.get.keys.map { c=>Language(c, m.get.getString(c).get)}.toList.sortBy(_.c)} | |
}} |
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 java.awt.Point; | |
public class Main { | |
public static int[][] create2dArray(int size) { | |
int[][] array = new int[size][size]; | |
for(int row = 0; row < size; ++row) { | |
for(int col = 0; col < size; ++col) { | |
array[row][col] = (col + 1) + size * row; | |
} |
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
jack: function(req, res) { | |
if (req.isSocket && req.body.hasOwnProperty('gameId') && req.body.hasOwnProperty('pNum') && req.body.hasOwnProperty('thiefId') && req.body.hasOwnProperty('victimId') && req.body.hasOwnProperty('jackId') && req.body.hasOwnProperty('targetId')) { | |
Game.findOne(req.body.gameId).populate('players').populate('deck').populate('scrap').exec(function(error, game) { | |
if (error || !game) { | |
console.log("Game " + req.body.gameId + " not found for jack"); | |
res.send(404); | |
} else { | |
Player.find([req.body.thiefId, req.body.victimId]).populate('hand').populate('points').populate('runes').exec(function(erro, players) { | |
if (erro || !players[0] || !players[1]) { |
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
/*------------------------------------*\ | |
CONTENTS | |
\*------------------------------------*/ | |
/* | |
LAYOUT | |
INPUT, BUTTON & DROPDOWN | |
*/ | |
/*------------------------------------*\ | |
LAYOUT |
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
/** | |
* jQuery Typeahead | |
* Copyright (C) 2014 RunningCoder.org | |
* Licensed under the MIT license | |
* | |
* @author Tom Bertrand | |
* @version 1.7.6 (2015-01-17) | |
* | |
* @link | |
* http://www.runningcoder.org/jquerytypeahead/ |
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
.file "hello.c" | |
.section .rdata,"dr" | |
.LC0: | |
.ascii "Hello, World!\0" | |
.text | |
.globl sayHello | |
.def sayHello; .scl 2; .type 32; .endef | |
.seh_proc sayHello | |
sayHello: | |
pushq %rbp |
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
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/lto-wrapper.exe | |
Target: x86_64-pc-cygwin | |
Configured with: /cygdrive/i/szsz/tmpp/gcc/gcc-4.9.2-2.x86_64/src/gcc-4.9.2/configure --srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-4.9.2-2.x86_64/src/gcc-4.9.2 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --libdir=/usr/lib --datarootdir=/usr/share --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_atexit --with-dwarf2 --with-tune=generic --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm --enable-libquadmath --enable-libquadmath-s |
NewerOlder