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
A LGO R I S M I C A | |
A V A N Ç A D A | |
1 1 1 0 0 1 _ 0 1 | |
_ _ _ _ 0 0 1 _ _ | |
_ _ 1 1 1 _ _ _ _ | |
1 1 1 1 1 1 1 0 1 | |
1 1 1 1 0 0 0 1 |
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
$ gcc -c -g nested_function_segfault.c -ansi -pedantic -O -Wall -Wno-unused-result | |
nested_function_segfault.c: In function ‘polinomi_d’: | |
nested_function_segfault.c:18:5: warning: ISO C forbids nested functions [-pedantic] | |
nested_function_segfault.c: In function ‘main’: | |
nested_function_segfault.c:33:1: warning: control reaches end of non-void function [-Wreturn-type] | |
$ gcc nested_function_segfault.o -o nested_function_segfault.exe -lm | |
$ ./nested_function_segfault.exe | |
Segmentation fault (core dumped) |
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
#include <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define PI 3.141592653589793 | |
double f_a(double x) { return x*x + sin(x) - PI; } | |
typedef double (*MATH_FUNCTION)(double); |
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 diagonalTraverse(m, fn) | |
{ | |
// This only works for rectangular or square | |
// form matrices. So no rows of variable sizes! | |
if ( m && m.length > 0 && m[0].length > 0 ) | |
{ | |
var i = 0, j = 0, | |
ci = null, cj = null, | |
M = m[i].length, // # of columns |
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
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
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
.bs-docs-example | |
{ | |
position: relative; | |
margin: 15px 0; | |
padding: 39px 19px 14px; | |
background-color: white; | |
border: 1px solid #DDD; | |
-webkit-border-radius: 4px; | |
-moz-border-radius: 4px; | |
border-radius: 4px; |
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
l_links.forEach(function(url){ // \.(...)\|\| // .$1|| | |
$.ajax({ | |
url: url, | |
success: function(data, state, jqxhr){ | |
console.log(data.split('location="')[1].split('"')[0]); | |
} | |
}); | |
}); |
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
// I know it adds another variable, but still, I find it fuzzy :3 | |
for ( var i = 0, file = files[0] ; i < files.length ; i++, file = files[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
{ | |
"uses": ["LaAventuraOriginal.messages.es"], | |
"actors": ["freak", "punk", "nerd", "master"], | |
"gameDirector": "master", | |
"partyGold": 200, | |
"npcs": { | |
"goblin": { | |
"names": "@goblin_names", | |
"pluralise": "@goblin_num", | |
"attributes": { |
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//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>comment</key> | |
<string>mkdynamic</string> | |
<key>name</key> | |
<string>Made of Code</string> | |
<key>settings</key> | |
<array> |