Skip to content

Instantly share code, notes, and snippets.

View stmoerman's full-sized avatar

Stephan Moerman stmoerman

View GitHub Profile
passport.use(new LocalStrategy(
function(username, password, done) {
User.findOne({ username: username }, function (err, user) {
if (err) { return done(err); }
if (!user) { return done(null, false); }
if (!user.verifyPassword(password)) { return done(null, false); }
return done(null, user);
});
}
));
from __future__ import (absolute_import, division, print_function,)
import fractions
import string
import sys
# Small Py2/3 compatibility layer
if sys.version_info.major == 2:
import itertools
<div id="Content">
<div id="wizardContainer">
<div class="noScreen" id="logoContainer"></div>
<div id="wizard">
div id wizard
<div>
<h2 id="gasSpringHeader">h2 id gasSpringHeader</h2>
</div>
<div id="stepHeader">
div id stepHeader <span id="stepId">span id stepId</span><span id="stepDescription">span id stepDescription</span>
<?php
// Set Variables
$LOCAL_ROOT = "/var/www/gemini";
$LOCAL_REPO_NAME = "gemini";
$LOCAL_REPO = "{$LOCAL_ROOT}/{$LOCAL_REPO_NAME}";
$REMOTE_REPO = "[email protected]:devbowser/geminigassprings.git";
$BRANCH = "master";
if ( $_POST['payload'] ) {
// Only respond to POST requests from Github
I’ll take you through the questionnaire that I use, and explain the rationale behind each question.
1. Why do you want to have a new website, or have your current site redesigned?
This question uncovers the client’s motivation for getting in touch with someone like you.
2. What will happen if you don’t have a new website, or have your current site redesigned?
This is the question that starts getting at the client’s pain. His current site may not be functional in current browsers. Or it could be that they’ve decided to sell online, and the current site doesn’t enable such a thing.

maxkrimo: and start to learning how everything working and not just to install shit themes and yeee I get webpage online :)

tsukle: It's really a person basis, you'll learn at different rates to anyone else just because you may be able to pick stuff up faster or slower than others. Put as much time as you think necessary into it to the point you are comfortable. Though remember being comfortable isn't necessarily good either. You need a balance of pushing yourself but not to the point you overdo yourself.

muukrls: damn that's a large ui

Fr4nk3rZz: Absolutely, if it is not your hobby I don't think you should pursue a job as a developer. Currently I am working on a React native application for a local sports team to keep better track of their performance and player statistics.

maxkrimo: Can you do everything in NODE as in PHP too ? I heard its impossible to code CMS systems and things like that in NODE , and for that is good PHP MYSQL , am I heard wrong

[
{
"title": "How to handle state in React. The missing FAQ.",
"author": "Osmel Mora",
"url": "https://medium.com/react-ecosystem/how-to-handle-state-in-react-6f2d3cd73a0c"
},
{
"title": "You might not need React Router",
"author": "Konstantin Tarkus",
"url": "https://medium.freecodecamp.com/you-might-not-need-react-router-38673620f3d"
@RequestMapping("/*")
public ModelAndView index() throws InterruptedException {
ModelAndView mav = new ModelAndView();
mav.setViewName("index");
return mav;
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace ConsoleApp1
{
class Program
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace ConsoleApp1
{
class Program