Skip to content

Instantly share code, notes, and snippets.

@kruczjak
kruczjak / kruczjak-gsoc-2016-final.md
Last active August 19, 2016 21:31
Jakub Kruczek - Kruczjak - GSOC 2016 - Rebuild bundler.io, the Bundler website - Final submission

Kruczjak - GSOC 2016 - Rebuild bundler.io, the Bundler website - Final submission

Short description

I rewrote https://bundler.io page to be responsive and much more user friendly.

Most important things done:

  • responsive, mobile-friendly design
  • search through documentation

Keybase proof

I hereby claim:

  • I am kruczjak on github.
  • I am kruczjak (https://keybase.io/kruczjak) on keybase.
  • I have a public key whose fingerprint is 5488 0056 042F 1430 B4DE 20FB E01C 9C40 2A17 96D7

To claim this, I am signing this object:

@kruczjak
kruczjak / .json
Last active November 26, 2015 18:01
{
type: 'GameState',
idOfPlayerPlaying: 2, //gracz aktualnie mający ruch
gameState: {
n: 150, //maksymalna liczba punktów
},
wonGame: null, //if not null: id gracza wygrywającego całą grę
wonPart: null, //if not null: id gracza wygrywającego turę
players: [
{
@kruczjak
kruczjak / .py
Last active November 21, 2015 15:01
class First:
def visit_method1(self):
print('hello1')
def visit_method2(self):
print('hello2')
first = First()
method = 'visit_method1'
getattr(first, method)() #wypisze hello1
@kruczjak
kruczjak / .cpp
Last active September 13, 2015 18:38
if (x==12) {
y=5;
}
//lub tak:
if (y==13)
{
x=6;
}
@kruczjak
kruczjak / .rb
Created September 11, 2015 19:06
require 'cinch'
require 'open-uri'
$users = {}
class Seen < Struct.new(:who, :where, :what, :time)
def to_s
"[#{time.asctime}] #{who} was seen in #{where} saying #{what}"
end
end
<dl class="postprofile" id="profile{postrow.POST_ID}"<!-- IF postrow.S_POST_HIDDEN --> style="display: none;"<!-- ENDIF -->>
<dt class="<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG -->has-profile-rank<!-- ELSE -->no-profile-rank<!-- ENDIF --> <!-- IF postrow.POSTER_AVATAR -->has-avatar<!-- ELSE -->no-avatar<!-- ENDIF -->">
<div class="avatar-container">
<!-- EVENT viewtopic_body_avatar_before -->
<!-- IF postrow.POSTER_AVATAR -->
<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}" class="avatar">{postrow.POSTER_AVATAR}</a><!-- ELSE --><span class="avatar">{postrow.POSTER_AVATAR}</span><!-- ENDIF -->
<!-- ENDIF -->
<!-- EVENT viewtopic_body_avatar_after -->
</div>
<!-- EVENT viewtopic_body_post_author_before -->
location / {
proxy_pass http://localhost:3000;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_x_forwarded_host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 3m;
proxy_send_timeout 3m;
/**
* Make field with errors and everything you need built in
* Usage:
<field ng-model="my_object.my_field"
errors="errors.my_field"
description="My field"
type="text"
placeholder="my_field"
required
void push_back(info info) {
if (list==null) return;
node * temp;
temp = (node *) malloc(sizeof node);
temp -> data = info;
temp -> next = list;
if (list->prev==null) {
list -> prev = temp;
list -> next = temp;