Skip to content

Instantly share code, notes, and snippets.

@darkua
Last active April 15, 2016 14:46
Show Gist options
  • Save darkua/3d17bf153acd1d4313202bda70dff3c9 to your computer and use it in GitHub Desktop.
Save darkua/3d17bf153acd1d4313202bda70dff3c9 to your computer and use it in GitHub Desktop.
Here are some things you can do with Gists in GistBox.
Server Software: nginx
Server Hostname: apply.hsf.net
Server Port: 443
SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128
Document Path: /sassy/v2/auth
Document Length: 32 bytes
Concurrency Level: 555
Time taken for tests: 58.904 seconds
Complete requests: 10000
Failed requests: 9959
(Connect: 0, Receive: 0, Length: 9959, Exceptions: 0)
Non-2xx responses: 9959
Total transferred: 2966900 bytes
Total body sent: 2400000
HTML transferred: 956826 bytes
Requests per second: 169.77 [#/sec] (mean)
Time per request: 3269.181 [ms] (mean)
Time per request: 5.890 [ms] (mean, across all concurrent requests)
# Use Gists to store entire functions
class QuickSort
def self.sort!(keys)
quick(keys,0,keys.size-1)
end
private
def self.quick(keys, left, right)
if left < right
pivot = partition(keys, left, right)
quick(keys, left, pivot-1)
quick(keys, pivot+1, right)
end
keys
end
def self.partition(keys, left, right)
x = keys[right]
i = left-1
for j in left..right-1
if keys[j] <= x
i += 1
keys[i], keys[j] = keys[j], keys[i]
end
end
keys[i+1], keys[right] = keys[right], keys[i+1]
i+1
end
end

Create documentation for your projects. Like so:


Most popular keyboard shortcuts within GistBox

  • Up/Down - Previous/Next Gist
  • Ctrl+e - Edit a selected Gist
  • Ctrl+s - Save Gist

Save Gists from anywhere with Clipper

GistBox Clipper is the companion extension to GistBox, the most beautiful way to organize code snippets. It allows a user to create a GitHub Gist from any page on the web.

Download from the Chrome Web Store

Use Gists to keep track of any information you'd like to remember later on.


White Chocolate Raspberry Cheesecake

From: http://allrecipes.com/Recipe/White-Chocolate-Raspberry-Cheesecake/Detail.aspx

Raspberry Cheesecake

Ingredients

  • 1 cup chocolate cookie crumbs
  • 3 tablespoons white sugar
  • 1/4 cup butter, melted
  • 1 (10 ounce) package frozen raspberries
  • 2 tablespoons white sugar
  • 2 teaspoons cornstarch
  • 1/2 cup water
  • 2 cups white chocolate chips
  • 1/2 cup half-and-half cream
  • 3 (8 ounce) packages cream cheese, softened
  • 1/2 cup white sugar
  • 3 eggs
  • 1 teaspoon vanilla extract

Directions

  1. In a medium bowl, mix together cookie crumbs, 3 tablespoons sugar, and melted butter. Press mixture into the bottom of a 9 inch springform pan.

  2. In a saucepan, combine raspberries, 2 tablespoons sugar, cornstarch, and water. Bring to boil, and continue boiling 5 minutes, or until sauce is thick. Strain sauce through a mesh strainer to remove seeds.

  3. Preheat oven to 325 degrees F (165 degrees C). In a metal bowl over a pan of simmering water, melt white chocolate chips with half-and-half, stirring occasionally until smooth.

  4. In a large bowl, mix together cream cheese and 1/2 cup sugar until smooth. Beat in eggs one at a time. Blend in vanilla and melted white chocolate. Pour half of batter over crust. Spoon 3 tablespoons raspberry sauce over batter. Pour remaining cheesecake batter into pan, and again spoon 3 tablespoons raspberry sauce over the top. Swirl batter with the tip of a knife to create a marbled effect.

  5. Bake for 55 to 60 minutes, or until filling is set. Cool, cover with plastic wrap, and refrigerate for 8 hours before removing from pan. Serve with remaining raspberry sauce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment