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: | |
write: no | |
copy: yes | |
autotag: yes | |
group_albums: yes #Use tags to group albums. | |
incremental: yes | |
log: ~/music/data/import.log | |
duplicate_action: skip |
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 software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider | |
import software.amazon.awssdk.regions.Region | |
import software.amazon.awssdk.services.s3.S3Client | |
import software.amazon.awssdk.services.s3.model.{S3Exception,CopyObjectRequest,CopyObjectResponse,HeadBucketRequest} | |
import scala.util.{Try,Success,Failure} | |
/** | |
Cross region copy object example with region code discovery for a bucket. | |
**/ |
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
[user] | |
name = <name> | |
email = <email> | |
username = <username> | |
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
[color "branch"] |
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
@JsonIgnoreProperties(ignoreUnknown = true) | |
@Value | |
public class JsonExample { | |
@NonFinal | |
@JsonView(SerializedViews.Response.class) | |
boolean broken; | |
@NonFinal | |
@JsonView(SerializedViews.Response.class) | |
Boolean working; |
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
#include <iostream> | |
using namespace std; | |
void overloaded(int a) { | |
cout << "This is an int: " << a << endl; | |
} | |
void overloaded(double a) { | |
cout << "This is a double: " << a << endl; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 { '/etc/uber/redis_ports.d': | |
# see also celery_port_queues.d | |
ensure => 'directory', | |
owner => 'root', | |
group => 'root', | |
mode => '0444', | |
source => 'puppet:///modules/redis/empty/', | |
recurse => true, | |
ignore => '.empty', | |
purge => true, |
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
from __future__ import division | |
import matplotlib | |
matplotlib.use('Agg') | |
import time | |
import sys | |
import math | |
import glob | |
import os | |
import cv2 |
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
from __future__ import print_function, division | |
import datetime as dt | |
import pandas as pd | |
import numpy as np | |
import scipy.optimize as sopt | |
def gradebook(): | |
columns = ("Assignment", "Due", "Grade", "Weight") |
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 requests | |
import time | |
import gevent | |
from gevent.queue import JoinableQueue | |
class Consumer(object): | |
def __init__(self): | |
self.queue = JoinableQueue() | |
self.producers = [Producer(self.queue) for _ in range(10)] |
NewerOlder