Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import numpy
arr = numpy.random.random( (4, 4) )
gen = ( slice(0,2) for i in range(2) )
arr2 = arr[ *gen ]
function snapshotsThreeSixty(steps){
total = 1260
mf3d = controls.getMeshFrame3D();
stack = 0;
perStep = 1260/steps;
for(var i = 0; i<steps; i++){
mf3d.rotateView(perStep, 0);
img = mf3d.snapShot();
proc = new ColorProcessor(img);
# With the specific request commented out.
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/home/smithm3/Desktop/java3d-temp/jogamp-fat.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
version = 1.7.0_final
vendor =
specification.version = 1.7
specification.vendor =
import java.util.Random;
import java.util.stream.IntStream;
import java.util.stream.Stream;
import java.util.Collections;
import java.util.stream.Collectors;
import java.util.List;
import java.util.ArrayList;
public class NonRepeatingChoices{
#!/usr/bin/env ruby
require 'yaml'
require 'set'
task :loadsources => :environment do
relations = YAML.load_file("db/built-sources.yml");
Source.all.each do |viejo|
viejo.destroy
end
relations.each do |source|
UnsatisfiableError: The following specifications were found to be in conflict:
- ffmpeg
- fontconfig
- graphviz
Use "conda info <package>" to see the dependencies for each package.
fontconfig:
freetype >=2.8,<2.9.0a0
icu >=58.2,<59.0a0
libiconv >=1.15,<2.0a0
import sys
""" if this is your original script."""
infile = open(sys.argv[1], 'r').readlines()
""" change it to this."""
def main(filename):
#!/usr/bin/env python
import sys
import numpy as np
from sklearn.decomposition import PCA
if __name__=="__main__":
nComponents = 742
infile = sys.argv[1]
import javax.swing.*;
import java.awt.*;
public class OptionOptions{
public static void main(String[] args){
while(true){
String[] options = {"OK", "NOT OK"};
String message = "What";
int n = JOptionPane.showOptionDialog(null, message, "Nytt smycke", JOptionPane.OK_CANCEL_OPTION,
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import java.util.ArrayList;
import java.util.List;
/**
* Created on 11.05.17.
*/
public class OthmEditor {
List<String> lines = new ArrayList<>();