This file contains hidden or 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 "stdlib.h" | |
| #include "stdio.h" | |
| #include "malloc.h" | |
| typedef struct genePart* GenePart; | |
| typedef struct geneData* GeneData; | |
| typedef struct geneNode* GeneNode; | |
| typedef u_char byte; | |
| typedef struct bruteTreeTrainer* BruteTreeTrainer; | |
| typedef struct geneDataSlice* GeneDataSlice; | |
| typedef struct trainingData* TrainingData; |
This file contains hidden or 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 <stdio.h> | |
| #include <string.h> | |
| //Declaring variables.. | |
| int numOfSentences; | |
| int numOfWords; | |
| char word[1]; //temp variable to read in stuff from the file and check it. | |
| char articles[10]; |
This file contains hidden or 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
| import System.Random | |
| import Wumpus.Core | |
| import Wumpus.Core.Colour | |
| import Wumpus.Drawing.Shapes | |
| import Wumpus.Basic.Kernel | |
| import System.Directory | |
| makeRandomPoint :: (RandomGen g, Random f) => (f , f) -> g -> ((f,f),g) | |
| makeRandomPoint limit gen = |
This file contains hidden or 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 <stdio.h> | |
| #include <stdlib.h> | |
| void quicksort(int *array, int length); | |
| void swap(int *a, int *b); | |
| void print(int *array, int length); | |
| int main() | |
| { |
This file contains hidden or 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
| Sentinel::Command.new(/incidents/, "Lists all of the incidents that Sentinel knows about") do |matches, message| | |
| opts = { | |
| service_id: Sentinel::DB[:room_services] | |
| .join(:rooms, :id => :room_id) | |
| .where(rooms__room_id: message.room_id) | |
| .select(:service_id) | |
| } | |
| records = Sentinel::DB[:incidents].where(opts).order(created_at) | |
| loop records do |record| | |
| message.say Yajil::Encoder.encode(record) |
This file contains hidden or 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
| configure:2096: $? = 0 | |
| configure:2103: gcc -m32 -v >&5 | |
| Using built-in specs. | |
| Target: x86_64-linux-gnu | |
| Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu | |
| Thread model: posix | |
| gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) | |
| configure:2106: $? = 0 | |
| configure:2113: gcc -m32 -V >&5 | |
| gcc: '-V' must come at the start of the command line |
This file contains hidden or 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
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://npmjs.org/install.sh | sh |
This file contains hidden or 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
| require 'anemone' | |
| Anemone.crawl("http://localhost:3000") do |a| | |
| a.on_every_page do |page| | |
| puts "#{page.code}, #{page.links}, #{page.url}" | |
| end | |
| end |
This file contains hidden or 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
| At /home/eric/src/globe/src/globe/events.clj:44: | |
| Consider using: | |
| (when-not (< (e-tic event) (:tic world)) event) | |
| instead of: | |
| (if (< (e-tic event) (:tic world)) nil event) | |
| At /home/eric/src/globe/src/globe/events.clj:68: | |
| Consider using: | |
| (neg? amount) | |
| instead of: |
This file contains hidden or 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
| <?php while (have_posts()) : the_post(); ?> | |
| <?php $image=get_post_meta($post->ID, $key, true); ?> | |
| <?php $video=get_post_meta($post->ID, $vkey, true); ?> | |
| <?php $gallery=true; ?> | |
| <?php if ($image!=="") { ?> | |
| <?php $gallerydisplayed=true; $pcount++; ?> | |
| <?php if ($pcount==1) { $portfolio_row_end=false; ?> | |
| <div class="categoryportfoliowrap"> |
OlderNewer