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
/************** main.cpp **************/ | |
int InitGL(GLvoid) { | |
...... | |
myClass = new myClass(); | |
myClass->Draw(pos); | |
...... | |
} | |
int DrawGLScene(GLvoid) { | |
...... |
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
initializeColumn(Column) :- | |
Column >0, | |
% create empty table | |
assert(top(Column, 1)), | |
Column1 is Column-1, | |
initializeColumn(Column1). | |
initializeColumn(0). | |
% Create Game with Row equal to row and column equal to column | |
createGame(Row, Column) :- |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- Generated by: TmTheme-Editor --> | |
<!-- ============================================ --> | |
<!-- app: http://tmtheme-editor.herokuapp.com --> | |
<!-- code: https://github.com/aziz/tmTheme-Editor --> | |
<plist version="1.0"> | |
<dict> | |
<key>gutterSettings</key> | |
<dict> |
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
<div class="website-content"> | |
<h1><?php printf( __( 'Search Result For: %s', 'YOUR_THEME_NAME' ), '<span>"' . get_search_query() . '"</span>' ); ?></h1> | |
<div class="search-result"> | |
<?php if ( have_posts() ) : ?> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<a href="<?php the_permalink(); ?>"><?php the_title() ?></a> | |
<?php endwhile; endif; ?> | |
<?php else: ?> | |
<h2> | |
<?php printf( __( 'No Results Found :(', 'YOUR_THEME_NAME' ) ) ?> |
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
#!/usr/bin/env ruby | |
## return the average of array | |
# @arr array of numbers to return its average | |
def getAverage (arr) | |
return arr.inject{ |sum, el| sum + el }.to_f / arr.size | |
end | |
## return the median of array | |
# @arr array of numbers to return its median |
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 sh = require('shelljs'); | |
function annotateFile (filePath) { | |
console.log('annotate ' + filePath); | |
sh.exec('ng-annotate -a ' + filePath + ' -o ' + filePath); | |
} | |
function annotateFolder (folderPath) { | |
console.log("annotate Folder " + folderPath); | |
sh.cd(folderPath); |
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 printRoot (folderPath) { | |
console.log("----" + folderPath); | |
sh.cd(folderPath); | |
var files = sh.ls() || []; | |
for (var i=0; i<files.length; i++) { | |
var file = files[i]; | |
if (file.match(/.*\.js/)) | |
console.log(file); | |
else { |
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
@font-face { | |
font-family: "Material-Design-Icons"; | |
src: url("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/font/material-design-icons/Material-Design-Icons.eot?#iefix") format("embedded-opentype"), url("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/font/material-design-icons/Material-Design-Icons.woff2") format("woff2"), url("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/font/material-design-icons/Material-Design-Icons.woff") format("woff"), url("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/font/material-design-icons/Material-Design-Icons.ttf") format("truetype"), url("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/font/material-design-icons/Material-Design-Icons.svg#Material-Design-Icons") format("svg"); | |
font-weight: normal; | |
font-style: normal; } | |
[class^="mdi-"], [class*=" mdi-"] { | |
font-family: "Material-Design-Icons"; | |
speak: none; | |
font-style: normal; |
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() { | |
$(document).ready(function () { | |
for (var i=1; i<=4; i++) { | |
$('[data-animation-'+i+']').each(function(index, e) { | |
var trigger = $(e).attr('data-animation-trigger-'+i); | |
var animationToRemove = $(e).attr('data-animation-to-remove-'+i); | |
var animationToAdd = $(e).attr('data-animation-type-'+i); |
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
/* | |
* transform: A jQuery cssHooks adding cross-browser 2d transform capabilities to $.fn.css() and $.fn.animate() | |
* | |
* limitations: | |
* - requires jQuery 1.4.3+ | |
* - Should you use the *translate* property, then your elements need to be absolutely positionned in a relatively positionned wrapper **or it will fail in IE678**. | |
* - transformOrigin is not accessible | |
* | |
* latest version and complete README available on Github: | |
* https://github.com/louisremi/jquery.transform.js |
OlderNewer