Skip to content

Instantly share code, notes, and snippets.

Claudiu csaftoiu

View GitHub Profile
@csaftoiu
csaftoiu / mult64_with_32.cpp
Created Jun 20, 2016
64-bit multiplication using 32-bit math
View mult64_with_32.cpp
#include <cstdlib>
#include <iostream>
#include <vector>
#include <string.h>
using namespace std;
static inline int64_t neg_cpp(int64_t a) {
View example.html
<div ng-init="a = 10; b = 350; c = 0.5; value = 35;">
<div class="row">
<div class="medium-8 small-6 columns">
<range-slider min="a" max="b * 2" step="c / 3" ng-model="value"></range-slider>
</div>
<div class="medium-4 small-6 columns">
<input type="number" ng-model="value">
</div>
</div>
<div class="row">
View example.html
<div ng-init="showHide = 15;">
<div class="row">
<div class="small-8 medium-10 columns">
<range-slider ng-model="showHide"></range-slider>
</div>
<div class="small-4 medium-2 columns">
<input type="number" ng-model="showHide">
</div>
</div>
<div class="row">
View example.html
<div class="row">
<div class="small-7 medium-9 columns">
<range-slider ng-init="horizontalTwoWay=13.37" ng-model="horizontalTwoWay"></range-slider>
</div>
<div class="small-2 medium-1 columns">
{{ horizontalTwoWay }}
</div>
<div class="small-3 medium-2 columns">
<input type="number" ng-model="horizontalTwoWay">
</div>
View example.html
<div class="row">
<div class="small-1 small-centered columns">
<range-slider vertical></range-slider>
</div>
</div>
@csaftoiu
csaftoiu / example.html
Last active Nov 17, 2015
foundation-range-slider-angular example 1
View example.html
<range-slider></range-slider>
@csaftoiu
csaftoiu / foundation-datepicker-angular.html
Created Nov 9, 2015
Auto-generated doc for foundation-datepicker-angular
View foundation-datepicker-angular.html
<h1><code ng:non-bindable="">datePicker</code>
<div><span class="hint">directive in module <code ng:non-bindable="">foundation.datepicker.angular</code>
</span>
</div>
</h1>
<div><h2 id="description">Description</h2>
<div class="description"><div class="foundation-datepicker-angular-directive-page foundation-datepicker-angular-directive-datepicker-page"><p>Element directive for
<a href="http://foundation-datepicker.peterbeno.com/example.html">foundation-datepicker</a>.
Adds a text input field which, when clicked, pops up the datepicker.</p>
</div></div>
@csaftoiu
csaftoiu / foundation-datepicker-angular.js
Created Nov 9, 2015
Angular binding for Foundation Datepicker
View foundation-datepicker-angular.js
'use strict';
/**
* @ngdoc overview
* @name foundation.datepicker.angular
* @description
* # foundation.datepicker.angular
*
* Add angular support for {@link http://foundation-datepicker.peterbeno.com/example.html foundation-datepicker}.
*/
@csaftoiu
csaftoiu / isprime.golf.c
Created May 13, 2015
Output of assembling isprime.golf
View isprime.golf.c
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#define MAX_RECURSION 1024
#define MAX_HEAP (64*1024*1024)
#define MAX_STACK (64*1024*1024)
You can’t perform that action at this time.