For some reason there is a whole thread on this seemingly simple tasks. In a bootstrapped Laravel 5.4 instance the following worked for me.
npm install font-awesome
""" | |
Python three ways | |
Print the numbers 1 - 10 in procedural, functional, and | |
object oriented styles. | |
""" | |
# Procedural | |
print(1) | |
print(2) |
const express = require('express') | |
const next = require('next') | |
const Featureflow = require('featureflow-node-sdk'); | |
const LaunchDarkly = require('ldclient-node'); | |
const dev = process.env.NODE_ENV !== 'production' | |
const app = next({ dev }) | |
const handle = app.getRequestHandler() | |
const ldclient = LaunchDarkly.init(process.env.LD_SDK_KEY) |
import Layout from '../components/MyLayout.js' | |
import fetch from 'isomorphic-unfetch' | |
const Index = (props) => ( | |
<Layout> | |
<h1>Features</h1> | |
<ul> | |
{props.featureKeys.map((key, index) => ( | |
<li key={key}> | |
{key} is {props.features[key]} |
version: '3' | |
services: | |
redis: | |
image: redis | |
ports: | |
- "6379:6379" | |
relay: | |
image: launchdarkly/ld-relay | |
depends_on: |
import com.launchdarkly.client.*; | |
LDClient ldClient = new LDClient("YOUR_SDK_KEY"); | |
LDUser user = new LDUser.Builder("some_id") | |
// // 100% Optional | |
.firstName("Ernestina") | |
.lastName("Evans") | |
.email("[email protected]") |
/** | |
Enable event sampling. When set to the default of zero, sampling is disabled and all events are sent back to LaunchDarkly. | |
When set to greater than zero, there is a 1 in samplingInterval chance events will be will be sent. | |
Example: if you want 5% sampling rate, set samplingInterval to 20. | |
**/ | |
var ldclient = LDClient.initialize('YOUR_CLIENT_SIDE_ID', user, options = { | |
samplingInterval: 20 | |
}); |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
sub ShowFeature { | |
my ($key, $user) = @_; | |
ld_eval($key, $user); | |
}; |
#cgit config | |
#=========== | |
#see cgitrc(5) for details | |
#========================= | |
css=/cgit.css | |
logo=/cgit.png | |
virtual-root=/ |
def connect_db(): | |
"""Connects to Database.""" | |
rv = sqlite3.connect( | |
app.config['DATABASE'], | |
detect_types=sqlite3.PARSE_DECLTYPES | sqlite3.PARSE_COLNAMES) | |
rv.row_factory = sqlite3.Row | |
return rv | |
def get_db(): |
For some reason there is a whole thread on this seemingly simple tasks. In a bootstrapped Laravel 5.4 instance the following worked for me.
npm install font-awesome