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
from ctypes import c_void_p | |
from OpenGL import GL | |
from OpenGL.GL.shaders import compileShader, compileProgram | |
from OpenGL.GL.ARB.vertex_array_object import glBindVertexArray, glGenVertexArrays | |
import pyglet | |
def glGenVertexArray(): | |
''' |
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 express = require('./server'); | |
var app = express(); | |
app.get('/cars/:id', function (req, res) { | |
res.send({id: req.params.id, name: 'Corolla'}); | |
}, {summary: 'Retrieve a car'}); | |
var auth = function (req, res, next) { | |
next(); | |
}; |
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
(function (undefined) { | |
var _; | |
if (typeof require === 'function') { | |
_ = require('lodash'); | |
} else { | |
_ = window._; | |
} | |
var mixins = {}; |
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
(ns deraenircclj.core | |
(:require [clojure.core.match :refer [match]] | |
[lamina.core :as c] | |
[aleph.tcp :as tcp] | |
[gloss.core :as gloss] | |
[irclj.parser :refer [parse]])) | |
(defn create-connection | |
[] | |
(let [input (c/permanent-channel) |
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
'use strict'; | |
module.exports = function (grunt) { | |
var path = require('path'); | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
var yeomanConfig = { | |
app: 'app', | |
dist: 'dist', | |
port: 3000 | |
}; |
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
# Create build-directory in project and place this package.json in that dir | |
{ | |
"name": "build", | |
"version": "0.0.0", | |
"private": true, | |
"description": "Grunt-cli & Bower", | |
"dependencies": { | |
"grunt-cli": "0.1.11", | |
"bower": "1.2.8" | |
}, |
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
node_modules |
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
// <span editable-ui-select="building.intentedUsageCode" e-name="intentedUsageCode" e-style="width: 100%" onbeforesave="foo($data)"> | |
// <foo-match>{{$select.selected.code}} {{$select.selected.def}}</foo-match> | |
// <foo-choices data="item in $usageCodes | filter:$select.search"> | |
// <span ng-bind-html="trustAsHtml((item.code | highlight: $select.search))"></span> | |
// <span ng-bind-html="trustAsHtml((item.def | highlight: $select.search))"></span> | |
// </foo-choices> | |
// <abbr title="{{building.intentedUsageCode}}">{{building.intentedUsageCode | def.usage}}</abbr> | |
// </span> | |
angular.module('xeditable') | |
.directive('editableUiSelect', function(editableDirectiveFactory) { |
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
/* | |
<input tagcomplete ng-model="skill.tags" options="tags" data-placeholder="Valitse avainsanoja" class="form-control"> | |
Where skill.tags = [{_id: ..., name: 'Something'}, {_id: ..., name: 'Another'}]; | |
...or maybe it is ['Something', 'Another']; | |
*/ | |
angular.module('frontendApp') | |
.directive('tagcomplete', function($parse) { | |
return { |
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
angular.module('frontendApp') | |
.directive('autocomplete', function($timeout, $compile) { | |
// No use using ng-model or anything as we are only | |
// interested in CHANGE EVENTS not about current value | |
// infact, <autocomplete ng-model="foo"> should work as autocomplete is replaced with input element | |
// => change-callback is optional | |
return { | |
restrict: 'E', | |
replace: true, |
OlderNewer