Skip to content

@Wendelstein7
Wendelstein7 / cats.sh
Created November 30, 2021 15:07
Syntax highlighted cat -> cats
sudo apt-get install highlight
echo "alias cats='highlight -O ansi --force'" > ~/.bash_aliases && source ~/.bash_aliases
#Use: `cats <file>`, like `cats test.sh`
class Cat
attr_reader :color, :breed
attr_accessor :name
def initialize(color, breed)
@color = color # instance variable
@breed = breed # instance variable
@hungry = true
end
@Aleks319
Aleks319 / Cat
Created August 24, 2016 15:26
Cat
class CatTest {
public static void main(String[] args) {
System.out.println("Count of cats: " + Cat.countCats);
Cat ca1 = new Cat("Cat1");
Cat ca2 = new Cat("Cat2");
Cat ca3 = new Cat("Cat3");
Cat ca4 = new Cat("Cat4");
Cat ca5 = new Cat("Cat5");
import Ember from 'ember';
var myCats =[Em.Object.create({"img":"http://images.postadsuk.com/2015/07/05/postadsuk.com-russian-blue-x-female-kitten.JPG","reting":0}),
Em.Object.create({"img":"http://dazedimg.dazedgroup.netdna-cdn.com/740/azure/dazed-prod/1150/0/1150466.jpg","reting":0})];
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
cats:myCats,
voteUp:function(cat){
cat.incrementProperty("rating");
@eadpearce
eadpearce / catbuffer.scd
Created February 17, 2018 13:39
Cats!!!
(
SynthDef("playstereo", { arg out=0, buf, amp=0.1, rate = 1; var pb; pb = PlayBuf.ar(2, buf, BufRateScale.kr(buf) * rate , doneAction:2) * amp; Out.ar(out, pb) }).store;
)
// execute one line at a time
~cat01 = Buffer.read(s, "cat01.aiff".resolveRelative);
~cat02 = Buffer.read(s, "cat02.aiff".resolveRelative);
~cat03 = Buffer.read(s, "cat03.aiff".resolveRelative);
~cat04 = Buffer.read(s, "cat04.aiff".resolveRelative);
~cats01 = Buffer.read(s, "cats01.aiff".resolveRelative);
model = tf.keras.models.Sequential()
model.add(tf.keras.layers.Conv2D(16, kernel_size=(3,3), activation='relu',input_shape=(50,50,1), padding='same'))
# model.add(LeakyReLU(alpha=0.1))
model.add(tf.keras.layers.MaxPooling2D(pool_size=(2,2), padding='same'))
model.add(tf.keras.layers.Conv2D(32, kernel_size=(3,3), activation='relu', padding='same'))
# model.add(tf.keras.activations.relu(alpha=0.1))
model.add(tf.keras.layers.MaxPooling2D(pool_size=(2,2), padding='same'))
model.add(tf.keras.layers.Conv2D(64, kernel_size=(3,3), activation='relu', padding='same'))
# model.add(tf.keras.activations.relu(alpha=0.1))
model.add(tf.keras.layers.MaxPooling2D(pool_size=(2,2), padding='same'))
plt.plot(history.history['accuracy'])
plt.plot(history.history['val_accuracy'])
plt.title('Model accuracy')
plt.ylabel('Accuracy')
plt.xlabel('Epoch')
plt.legend(['Train', 'Test'], loc='upper left')
plt.show()
@emmaviolet
emmaviolet / cats.md
Last active November 24, 2021 17:49
Cats
This is my cat		

I wrote this in sublime

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at nisi non est suscipit tincidunt. Maecenas convallis turpis augue, at pretium purus pharetra at. Cras a sem nisi. Suspendisse scelerisque accumsan nisi, a ornare nisi condimentum ac. Suspendisse neque metus, varius vitae aliquam quis, iaculis in risus. Phasellus pharetra, tellus vitae congue ultrices, dolor quam venenatis tortor, et finibus arcu urna in turpis. Quisque vel lacus rutrum, aliquet augue ac, condimentum nibh. Phasellus quis nunc sit amet felis tristique vulputate in at nisi. Aliquam efficitur ligula vitae massa suscipit, vel bibendum dui fermentum. Etiam dictum, turpis ut sollicitudin porttitor, risus magna posuere urna, non malesuada ante tellus nec metus. Nunc pellentesque dictum fringilla. Suspendisse nibh dolor, eleifend blandit pharetra et, porttitor quis libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Maecenas molestie dui eu l

public class Dog extends Animal {
public Dog(String type, boolean hasleg, int numOfLegs) {
super(type, hasleg, numOfLegs);
// TODO Auto-generated constructor stub
}
public void talk(){
@x1ah
x1ah / c.gif
Last active July 4, 2020 04:58
cat
c.gif