Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Zyabin schas002

View GitHub Profile
@Zatnosk
Zatnosk / social_web_idea.md
Last active Feb 26, 2018
Social web idea
View social_web_idea.md

[The following is a chat log from a Slack group]

arturovm

How’s this for a new social network?

  1. There are no likes
  2. There are no followers or “friends”; they’re called contacts
  3. There are no “re-posts”; you can only share someone else’s post with your contacts and add your comment to it (similar to Tiwtter’s quote-tweet), but people can’t reply to your “share”. Your “share” of the post appears under the original post’s replies, and any time someone who saw you share the post would want to discuss it, replies have to be made on the original post.

zatnosk

sounds fancy. I "like" the no-likes part. Would the contact thing be equal to what we currently call "mutuals"? i.e. both parts have to actively seek the connection.

anonymous
anonymous / config.json
Created Feb 16, 2017
Bootstrap Customizer Config
View config.json
{
"vars": {
"@gray-base": "#374047",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#07c",
"@brand-success": "#1c0",
View lol.md
  • _ is an indescriptive name
  • %p<1 are you trying to modulo from a boolean? what the fuck
  • _-p oh god why
  • this is just nasty
View conor's entry.md
  • with is deprecated
  • you only access one property on window, so just access it directly
  • 094 this can acidentally convert to hex, so just use 94, also the 0 is extraneous in that case anyway
  • there's no reason to make 94 as a variable
  • varName is indescriptive
@The-Quill
The-Quill / meh.md
Created Feb 23, 2016
mehmehmeh.meh
View meh.md
  • Follow snake_case
  • it=int=input( ""'') does this even fucking compile?
  • MyNumberCounter= 10 whitespace between operators
  • try : not this operator
  • while not: could swap to == False
  • (it) does nothing
  • int don't name a variable with a type name
  • mix of tabs and spaces, you evil, evil person
  • MyNumberCounter() the type is an int, not a function or generator, this probably won't compile
  • loop is not defined
View shtripedrheview.md

#Speling You mispeled SEPERATOR.


#Naming

Try and avoid single character or abbreviated names:

strToInt(s)
@orlp
orlp / chacha.h
Last active Oct 24, 2020
C++11 ChaCha implementation.
View chacha.h
/*
Copyright (c) 2015 Orson Peters <orsonpeters@gmail.com>
This software is provided 'as-is', without any express or implied warranty. In no event will the
authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial
applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the
View index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Blank</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
</head>
anonymous
anonymous / index.html
Created Feb 12, 2015
A blank template for a website.
View index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Blank</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
</head>
@schacon
schacon / gist:1
Created Jul 15, 2008
the meaning of gist
View gist:1
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.
You can’t perform that action at this time.