Skip to content

Instantly share code, notes, and snippets.

View krilo's full-sized avatar

Kristofer Forsell krilo

  • DEPT Dogstudio
  • Amsterdam
View GitHub Profile
@krilo
krilo / ZoomSDKWrapper.h
Last active February 13, 2018 21:56
Zoom SDK Wrapper for React Native
#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif
#import <MobileRTC/MobileRTCAuthService.h>
#import <MobileRTC/MobileRTC.h>
@interface ZoomSDKWrapper : NSObject <RCTBridgeModule, MobileRTCAuthDelegate, MobileRTCMeetingServiceDelegate>
@end
@krilo
krilo / baseline.scss
Created November 29, 2015 16:46
Simple Basline
@mixin baseline($lineheight, $spacing: 1) {
line-height: $lineheight;
&:before {
content:'';
display: inline-block;
vertical-align: baseline;
height: $lineheight*$spacing;
}
@krilo
krilo / .darkice.cfg
Created October 29, 2015 11:16
Icecast Configs
# sample DarkIce configuration file, edit for your needs before using
# see the darkice.cfg man page for details
# this section describes general aspects of the live streaming session
[general]
duration = 0 # duration of encoding, in seconds. 0 means forever
bufferSecs = 2 # size of internal slip buffer, in seconds
reconnect = yes # reconnect to the server(s) if disconnected
# this section describes the audio input that will be streamed
@font-face {
font-family: 'Trade Gothic Condenced';
src: url('../fonts/TradeGothicCondBold/tradegothicltstd-bdcn20.eot');
src: url('../fonts/TradeGothicCondBold/tradegothicltstd-bdcn20.eot') format('embedded-opentype'),
url('../fonts/TradeGothicCondBold/tradegothicltstd-bdcn20.woff2') format('woff2'),
url('../fonts/TradeGothicCondBold/tradegothicltstd-bdcn20.woff') format('woff'),
url('../fonts/TradeGothicCondBold/tradegothicltstd-bdcn20.ttf') format('truetype'),
url('../fonts/TradeGothicCondBold/tradegothicltstd-bdcn20.svg#TradeGothicLTStdBoldCondensedNo.20') format('svg');
}
artxApp.directive('artxMobileSlider', function() {
return {
restrict: 'A',
replace: false,
scope: {},
controller: ['$scope', '$http', function($scope, $http) {}],
link: function(scope, element, attrs){
scope.touchStart = null
@krilo
krilo / gist:7941807
Created December 13, 2013 09:19
B Module structure
B.module = {
heavy: false,
values: {
amount: new B.valueSlider(0, 100, 10, "amount")
},
initialize: function() {
},
render: function() {
@import "compass/utilities/sprites"; // Include compass sprite helpers
@import "compass/css3/background-size"; // Include helper to calc background size
$retina-pixel-ratio: 2 !default;
// http://compass-style.org/reference/compass/helpers/sprites/
@mixin get-sprite($map, $sprite, $retina: false, $offset-x: 0, $offset-y: 0, $repeat: no-repeat, $height: true, $width: true) {
//http://compass-style.org/reference/compass/helpers/sprites/#sprite-file
@krilo
krilo / Legal Drinking Ages
Last active December 16, 2015 05:59
Legal Drinking Ages in a dropdown
class binory.Controller
# Subscriber
_(Controller.prototype).defaults binory.Subscriber
model: null
collection: null
view: null
currentId: null
@krilo
krilo / gist:3666042
Created September 7, 2012 12:55
Compile coffeescript with Snockets in Node.js
// Compile Coffescript
function compileCoffee() {
snockets.getConcatenation('public/javascripts/app.coffee', {
minify: false,
async: false
}, function(err, js) {
fs.writeFile("public/javascripts/app.js", js, function(err) {
if(err) {
console.log(err);
}