View luajit-curl.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
LuaJIT-cURL | |
Lucien Greathouse | |
LuaJIT FFI cURL binding aimed at cURL version 7.38.0. | |
Copyright (c) 2014 lucien Greathouse | |
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. |
View digest.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require("http"); | |
var https = require("https"); | |
var crypto = require('crypto'); | |
function HTTPDigest(username, password, use_https) { | |
this.username = username; | |
this.password = password; | |
this.use_https = use_https; | |
} |
View game.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Reglike</title> | |
<style> | |
*, *::before, *::after { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} |
View generate-community.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style> | |
#output { | |
font-size: 3rem; | |
margin: 0; | |
padding: 0.5rem; | |
line-height: 1.2; |
View main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// uuid: 0.7.4 with "v4" feature enabled | |
// Valid UTF-8: 6868 / 100000000 | |
// Valid %: 0.006868 | |
// | |
// Sample strings: | |
// | |
// "2U6!>:N۸\u{1e}cUV3m%" | |
// "ɷ1e\r}AـΕ+3Wĭ" | |
// "aTA ?\u{17}KǺ\u{1f}\u{7}\u{19}\u{2}\u{c}\u{7}?" |
View compareList.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function compareList(list, len) | |
-- We use varargs here since spare arrays make Lua upset | |
return function(...) | |
len = len or select("#", ...) | |
local hasDifference = false | |
local differentIndexes = {} | |
for i = 1, len do | |
if list[i] ~= select(i, ...) then |
View WindowedView.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Roact = require(script.Parent.Parent.Roact) | |
local WindowedView = Roact.PureComponent:extend("WindowedView") | |
function WindowedView:init() | |
self.state = { | |
viewStart = 1, | |
viewSize = 1, | |
paddingStart = 0, | |
} |
View selector-example.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function applySelector(selector, ...) | |
if typeof(selector) == "string" then | |
return (...)[selector] | |
else | |
return selector(...) | |
end | |
end | |
local function listShallowEqual(a, b, len) | |
for i = 1, len do |
View .cvimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set smoothscroll | |
unmap d u | |
let blacklists = ["*://mail.google.com/*", "*://play.google.com/*", "*://*.slack.com/*", "*://discordapp.com/*"] |
View main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate winit; | |
fn main() { | |
let events_loop = winit::EventsLoop::new(); | |
let window = winit::WindowBuilder::new() | |
.with_dimensions(200, 200) | |
.with_max_dimensions(200, 200) | |
.build(&events_loop) | |
.unwrap(); |
NewerOlder