Skip to content

Instantly share code, notes, and snippets.

-- Tweakable settings
-- timer color in combat
local COMBAT_R = 1
local COMBAT_G = 1
local COMBAT_B = 1
-- timer color out of combat
local NOCOMBAT_R = 1
local NOCOMBAT_G = 1
local NOCOMBAT_B = 1
@vendethiel
vendethiel / a.ls
Last active December 14, 2015 23:28
cokebench
N = 999
code =
'implicit call': 'f f ' * N + \\n
'soak access': 'o?.' * N + 'o\n'
'nested blocks': ("if #i\n" + ' ' * i for i from 1 to N)*"" + i + \\n
'destructuring': \[ * N + \x + \] * N + ' = a\n'
for desc, part in code
say desc

Most active GitHub users

GitHub has released contributions (summary of Pull Requests, closed issues and commits).

This is the count of contributions to public repos at GitHub.com from Wed, 11 Jan 2012 01:52:32 GMT till Fri, 11 Jan 2013 01:52:32 GMT.

To repeat:

  1. Take the first 1000 users in GitHub according to the count of followers.
  2. Sort them by number of public contributions.
News:
connection: other
actAs: [ Timestampable ]
columns:
author_id: int(9)
title: varchar(255)
content: text
relations:
Comments:
class: Comment
$(".datatable").dataTable
bPaginate: true
bFilter: true
sScrollY: '90%'
fnDrawCallback: ->
$('.dataTables_scrollBody').addClass('user-panel').jScrollPane {"contentWidth": 480}
return
@vendethiel
vendethiel / vendethiel.html
Created October 20, 2012 22:02 — forked from anonymous/vendethiel.html
UserinfoPane
<div itemscope itemtype="http://schema.org/Person" class='user_details'>
<span class='hide' itemprop="name">{$author['members_display_name']}</span>
<ul class='basic_info'>
<if test="membertitle:|:$author['member_title']">
<p class='desc member_title'>{$author['member_title']}</p>
</if>
<if test="avatar:|:$author['member_id']">
<li class='avatar'>
<if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
<a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
###
# Example usage :
class EmailForm extends Form
fields:
checkbox: [] #<input checkbox> with no validator takes `checked?` as a value
email: (is /[a-zA-Z0-9_-]+\@[a-zA-Z0-9_-]+\.[a-zA-Z]{1,4}/)
subject:
(.length > 20)
(text, field) -> field.is ':visible'
text: (.length > 50)
Foo = DataSource: {}
class Foo.DataSource.REST
(@baseUrl) ->
fetchAll: !->
@doRequest("GET", @baseUrl,
success: (data, event, response) ->
console.debug data
)
fetch: !(id) ->
@vendethiel
vendethiel / gist:3340605
Created August 13, 2012 13:14
prelude.ls
# This is low level LiveScript - this is not an
# example of how you should write LiveScript.
# Code reuse has taken a back seat to performance,
# because the functions in this libaray will be
# called often, and the code here, once set, will
# not change often.
export objToFunc = objToFunc = (obj) ->
(key) -> obj[key]
@vendethiel
vendethiel / gist:3062690
Created July 6, 2012 20:54
Rails UJS plugin rewritten using LiveScript
$ <-! jQuery
/** ###
* Unobtrusive scripting adapter for jQuery
*
* Requires jQuery 1.6.0 or later.
* https://github.com/rails/jquery-ujs
* Uploading file using rails.js
* =============================