This is helpful to see when you are about to go over 80 characters.
In settings.json
{
"editor.rulers": [80]
}
This comes up when you do go get with a private repo; it wants a username/pass instead of using your key.
git config --global url.ssh://[email protected]/.insteadOf https://github.com/
| """ | |
| 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=/ |