Skip to content

Commit 1510771

Browse files
committed
Fixed ordering, added pre-commit hook and deploy script for order checking
1 parent 6929334 commit 1510771

File tree

4 files changed

+59
-19
lines changed

4 files changed

+59
-19
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@ If you'd like to see GitHub profiles, [click here](github.md).
5555
- Ashwin Kachhara http://ashwinkachhara.com
5656
- Athul Atom Vayalinkal http://vayalinkal.com
5757
- Austin L. Chang http://www.austinlchang.com
58-
- Bilal Majeed http://bilalmajeed.com
5958
- Ben Stobaugh http://helloben.co
6059
- Ben Weinstein-Raun http://www.benwr.net
6160
- Ben Williams http://719Ben.com
6261
- Berwin Xie http://berwin.io
62+
- Bilal Majeed http://bilalmajeed.com
6363
- Brandon Amos http://bamos.github.io
6464
- Brandon Davis http://redspin.net
6565
- Brandon Truong http://hello.brandontruong.com
6666
- Brendan Ryan http://brendanjryan.com/
6767
- Brent Bovenzi http://bbovenzi.com/
68-
- Brian Chuk http://devchuk.github.io/
6968
- Brian Chu www.brianchu.com
69+
- Brian Chuk http://devchuk.github.io/
7070
- Brijesh Patel https://about.me/brijeshpatel9
7171
- Britt Mathis http://bmuk.io
7272
- Bruno B. Ferrari Faviero http://brunofaviero.com
@@ -111,8 +111,8 @@ If you'd like to see GitHub profiles, [click here](github.md).
111111
- Diana Zink http://doerhub.com/of/diana
112112
- Dima Konev http://ezhik.me
113113
- Dylan McIntyre http://dmcintyre.net
114-
- Elissa Shevinsky http://elissashevinsky.com
115114
- Eli White http://eli-white.com
115+
- Elissa Shevinsky http://elissashevinsky.com
116116
- Emily Tran http://emilytran.org
117117
- Eric Song http://ericsong.io
118118
- Eric Zinnikas https://ericz.com
@@ -161,14 +161,14 @@ If you'd like to see GitHub profiles, [click here](github.md).
161161
- Jay Mo http://jaymo.me/
162162
- Jaylen Wimbish http://www.jaylenwimbish.com/
163163
- Jeffrey Lin http://linjeffrey.me
164-
- Jevin Sidhu http://jevinsidhu.com
165164
- Jennifer Apacible http://apacible.us/
166165
- Jeremy Meyer http://jeremymeyer.us
167166
- Jerica Huang http://jericahuang.com
168167
- Jerrick Davis http://jerrick.us
169-
- Jesse Collins http://jtcollins.me
170168
- Jesse Chand http://jessechand.com
169+
- Jesse Collins http://jtcollins.me
171170
- Jessica Chang http://jessmchang.com
171+
- Jevin Sidhu http://jevinsidhu.com
172172
- Jian Wei Chuah http://jianweichuah.com
173173
- Jing Xiao http://www.notajingoist.com/index.html
174174
- Joe Duncko http://joeduncko.com/
@@ -210,18 +210,18 @@ If you'd like to see GitHub profiles, [click here](github.md).
210210
- Laurence Welch http://laurencewelch.com
211211
- Lawrence Lin Murata http://lawrencemurata.com/
212212
- Lex Alexander http://coderlex.com
213+
- Li Xuanji http://xuanji.li
213214
- Liam Horne http://lihorne.com
214215
- Liang Gao http://liang.gao.nyc
215-
- Li Xuanji http://xuanji.li
216216
- Long Tran http://ltran.co
217217
- Luka Marr http://lukamarr.github.io
218218
- Mahir Kothary http://mahirk.com
219219
- Manoj Pandey http://manojp.co
220220
- Marco Bettiolo http://bettiolo.it
221221
- Maria Chavez http://mariachavez.co
222-
- Markan Patel http://markanpatel.me
223222
- Mark Diez http://markediez.com/
224223
- Mark Ormesher https://www.markormesher.co.uk/
224+
- Markan Patel http://markanpatel.me
225225
- Martin Petkov http://www.martinpetkov.me/
226226
- Masoud Harati https://masoudh.ml
227227
- Matheus C. Candido http://cassiano.me
@@ -282,7 +282,6 @@ If you'd like to see GitHub profiles, [click here](github.md).
282282
- Roger Zou http://rogergzou.com
283283
- Rohan Likhite http://rohanlikhite.com
284284
- Rohan Yelsangikar http://royels.me
285-
- Rõhith Varanasi http://rohithvaranasi.com
286285
- Ruiqi Mao http://www.ruiqimao.com/
287286
- Rushi Shah http://www.rshah.io/
288287
- Rushy Panchal https://panchr.me
@@ -291,8 +290,9 @@ If you'd like to see GitHub profiles, [click here](github.md).
291290
- Ryan Lin http://ryanlin.com
292291
- Ryan Senanayake http://www.RSenApps.com
293292
- Ryhan Hassan http://ryhan.org
294-
- Sahibjot Saggu http://www.sahibjot.me/
293+
- Rõhith Varanasi http://rohithvaranasi.com
295294
- Sagar Garg http://sagargarg.github.io/
295+
- Sahibjot Saggu http://www.sahibjot.me/
296296
- Sai Grandhi http://grandhi.me
297297
- Saleh Hamadeh http://shamadeh.com
298298
- Saleh Kaddoura http://tekee.herokuapp.com/
@@ -317,8 +317,8 @@ If you'd like to see GitHub profiles, [click here](github.md).
317317
- Stephen Greco https://sgre.co/
318318
- Steve Dean http://about.me/stevenmdean
319319
- Steven Bock http://stevenbock.me
320-
- Sudarshan Muralidhar http://smuralidhar.com
321320
- Su Min Kim http://suminkim.me/
321+
- Sudarshan Muralidhar http://smuralidhar.com
322322
- Suril Shah http://www.eng.uwaterloo.ca/~sn3shah/
323323
- Taher Dhilawala http://taher.me
324324
- Tejas Manohar http://tejas.io
@@ -342,8 +342,8 @@ If you'd like to see GitHub profiles, [click here](github.md).
342342
- Vishnu Narang http://vishnun.github.io
343343
- Vishnu Ravi http://vishnu.io/
344344
- Wasim Thabraze http://thabraze.in
345-
- William Cockburn http://syrexide.com
346345
- Will Field-Thompson http://willft.io
346+
- William Cockburn http://syrexide.com
347347
- William Huang http://www.hellowilliam.com
348348
- William Woodruff http://woodruffw.us
349349
- Yask Srivastava http://iyask.me

deploy_hooks.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
cd .git/hooks
3+
cp --symbolic-link ../../hooks/* .

github.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ Hackathon Hackers' GitHub profiles
195195
- Dhiraj Bodicherla https://github.com/dhirajbodicherla
196196
- Dhruv Arora https://github.com/dhruvarora
197197
- Diana Zink https://github.com/deftworker
198-
- Dima Konev https://github.com/silverezhik
199198
- Dilpreet Chana https://github.com/DSchana
199+
- Dima Konev https://github.com/silverezhik
200200
- Douglas Bumby https://github.com/istx25
201201
- Drbyo Mkwi https://github.com/Dirbaio
202202
- Dvid Silva https://github.com/dvidsilva
@@ -218,8 +218,8 @@ Hackathon Hackers' GitHub profiles
218218
- Ethan Arnold https://github.com/masonsbro
219219
- Ethan Richardson http://github.com/ethanx94
220220
- Eugene Cheung https://github.com/arkon
221-
- Faisal Aldilaijan https://github.com/aldilaff
222221
- Faiq Raza https://github.com/faiq
222+
- Faisal Aldilaijan https://github.com/aldilaff
223223
- Faiz Ahmad https://github.com/Faiz7412
224224
- Faiz Ahmed Khan https://github.com/dridon
225225
- Fan Zhang https://github.com/fanwashere
@@ -313,8 +313,8 @@ Hackathon Hackers' GitHub profiles
313313
- Jaxon Stevens https://github.com/LemonaInc
314314
- Jay Kamat https://github.com/jgkamat
315315
- Jay Mo https://github.com/jayhxmo
316-
- Jaylen Wimbish https://github.com/jaylenw
317316
- Jay Zalowitz https://github.com/jayzalowitz
317+
- Jaylen Wimbish https://github.com/jaylenw
318318
- Jeffrey Lin https://github.com/linjeffrey
319319
- Jennifer Apacible https://github.com/japacible
320320
- Jeremy Meyer https://github.com/jjman505
@@ -358,7 +358,6 @@ Hackathon Hackers' GitHub profiles
358358
- Joyce Yan https://github.com/joyceyan
359359
- Juan Chomali https://github.com/jchomali
360360
- Julien L https://github.com/26medias
361-
- 서태웅 (Justice Suh) https://github.com/justicesuh
362361
- Justin Bleuel http://www.columbia.edu/~jmb2372/
363362
- Justin Cano https://github.com/bumrush
364363
- Justin Chan https://github.com/justinthec
@@ -426,12 +425,12 @@ Hackathon Hackers' GitHub profiles
426425
- Mahir Kothary https://github.com/mahirk
427426
- Manash Mandal https://github.com/manashmndl
428427
- Marco Bettiolo https://github.com/bettiolo
429-
- María Teresa Chávez https://github.com/materechm
430428
- Marius Sebastian Trif https://github.com/coolsebz
431429
- Mark Ormesher https://github.com/markormesher
432430
- Markan Patel https://github.com/cooltoast
433-
- Martin Petkov https://github.com/MartinPetkov
434431
- Marouane Nafaa https://github.com/mnafaa
432+
- Martin Petkov https://github.com/MartinPetkov
433+
- María Teresa Chávez https://github.com/materechm
435434
- Masoud Harati https://github.com/MasoudH
436435
- Matan Uchen https://github.com/matan157
437436
- Matheus C. Candido https://github.com/mcassiano
@@ -471,8 +470,8 @@ Hackathon Hackers' GitHub profiles
471470
- Milan Dasgupta https://github.com/milanocookies93
472471
- Milind Shah https://github.com/promilo
473472
- Milstein Munakami https://github.com/Milstein
474-
- Minh Nguyen https://github.com/minhongrails
475473
- Ming Luo https://github.com/Mingling94
474+
- Minh Nguyen https://github.com/minhongrails
476475
- Miquel Llobet https://github.com/mllobet
477476
- Moez Bhatti https://github.com/moezbhatti
478477
- Moksh Jawa https://github.com/mokshjawa
@@ -583,7 +582,6 @@ Hackathon Hackers' GitHub profiles
583582
- Rohan Shah https://github.com/rohan4
584583
- Rohan Shah https://github.com/Rohanyshah
585584
- Rohan Yelsangikar https://github.com/royels
586-
- Rõhith Varanasi https://github.com/Rohfosho
587585
- Ron Bhatta https://github.com/aranibatta
588586
- Ronak Patel https://github.com/ronakp
589587
- Ross Semenov https://github.com/rossem
@@ -598,6 +596,7 @@ Hackathon Hackers' GitHub profiles
598596
- Ryan Lin https://github.com/ryansl
599597
- Ryan Senanayake https://github.com/RSenApps
600598
- Ryhan Hassan https://github.com/ryhan
599+
- Rõhith Varanasi https://github.com/Rohfosho
601600
- Sachan Ganesh https://github.com/sachanganesh
602601
- Sacheth Chandramouli https://github.com/Sapchan
603602
- Sagar Garg https://github.com/sagargarg
@@ -734,3 +733,4 @@ Hackathon Hackers' GitHub profiles
734733
- Zakariyya Mughal https://github.com/zmughal
735734
- Zane Blackwell Sterling https://github.com/Shriken
736735
- Zhou Yi https://github.com/ZhouYii
736+
- 서태웅 (Justice Suh) https://github.com/justicesuh

hooks/pre-commit

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env python
2+
3+
from __future__ import print_function
4+
5+
import os
6+
import sys
7+
8+
def extract_names(f_name):
9+
with open(f_name, 'r') as f:
10+
for line in f:
11+
# Probably should look for -\S+[A-Za-z\S]+ <url> instead
12+
if line.startswith('- '):
13+
yield line.split(' ', 1)[1]
14+
15+
def strip_url(s):
16+
return " ".join(s.strip().split(' ')[:-1])
17+
18+
def validate_ordering():
19+
ret_val = 0
20+
for f_name in ['README.md', 'github.md']:
21+
if not os.path.exists(f_name):
22+
print(' [-] Aborting commit: expecting %s to exist'%f_name)
23+
ret_val = 1
24+
else:
25+
print(' [+] Checking %s'%f_name)
26+
prev_line = None
27+
for line in extract_names(f_name):
28+
if prev_line is not None and line.lower() < prev_line.lower():
29+
print(" [-] Aborting commit: %s and %s are out of order!"%(
30+
strip_url(line),
31+
strip_url(prev_line)))
32+
ret_val = 1
33+
prev_line = line
34+
return ret_val
35+
36+
if __name__ == '__main__':
37+
sys.exit(validate_ordering())

0 commit comments

Comments
 (0)