Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| package server; | |
| import java.io.BufferedReader; | |
| import java.io.FileReader; | |
| import java.util.Date; | |
| import java.util.Properties; | |
| import java.util.Vector; | |
| import javax.mail.*; | |
| import javax.mail.internet.*; |
| Budget { | |
| public double CalculateTotal() { ... } | |
| } | |
| /* ---- */ | |
| OneClient { | |
| ... | |
| budget.CalculateTotal(); | |
| ... | |
| } |
| class BankAccount { | |
| public void Spend(double amount) { ... } | |
| } | |
| /* ---- */ | |
| class OneClient { | |
| ... | |
| bankAccount.Spend(amount); | |
| ... | |
| } |
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| lost(arg, function(err, result) { | |
| if(err) return console.log(err); | |
| In(result, function(err, result) { | |
| if(err) return console.log(err); | |
| callback(result, function(err, result) { | |
| if(err) return console.log(err); | |
| hell(result); | |
| }); | |
| }); | |
| }); |
| package com.argentrose; | |
| import static org.junit.jupiter.api.Assertions.assertEquals; | |
| import org.junit.jupiter.api.BeforeEach; | |
| import org.junit.jupiter.api.Test; | |
| public class ArgentRoseStoreTest { | |
| public static final int MIN_QUALITY = 0; |
| class FileTransactionsRepository : ITransactionsRepository | |
| { | |
| // more code... | |
| } | |
| class Account | |
| { | |
| private ITransactionsRepository _transactionsRepository; | |
| public Account() |
| using NUnit.Framework; | |
| namespace Gilded_rose.Test; | |
| public class GildRoseTest | |
| { | |
| private const int MinQuality = 0; | |
| private const int MaxQuality = 50; | |
| [Test] |