Skip to content

Instantly share code, notes, and snippets.

@csaftoiu
csaftoiu / mult64_with_32.cpp
Created June 20, 2016 23:28
64-bit multiplication using 32-bit math
#include <cstdlib>
#include <iostream>
#include <vector>
#include <string.h>
using namespace std;
static inline int64_t neg_cpp(int64_t a) {
<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">
<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">
<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>
<div class="row">
<div class="small-1 small-centered columns">
<range-slider vertical></range-slider>
</div>
</div>
@csaftoiu
csaftoiu / example.html
Last active November 17, 2015 20:05
foundation-range-slider-angular example 1
<range-slider></range-slider>
@csaftoiu
csaftoiu / test
Created November 17, 2015 19:58
test
test
@csaftoiu
csaftoiu / foundation-datepicker-angular.html
Created November 9, 2015 21:52
Auto-generated doc for foundation-datepicker-angular
<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 November 9, 2015 21:50
Angular binding for Foundation Datepicker
'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 19:43
Output of assembling isprime.golf
#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)