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
PING kali.normes (192.168.1.23): 56 data bytes | |
ping: sendto: No buffer space available | |
ping: sendto: No buffer space available | |
Request timeout for icmp_seq 0 | |
ping: sendto: No buffer space available | |
Request timeout for icmp_seq 1 | |
ping: sendto: No buffer space available | |
Request timeout for icmp_seq 2 | |
ping: sendto: No buffer space available | |
Request timeout for icmp_seq 3 |
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
Some brief instructions on how to use Sprocket 2 in Rails to get CoffeeScript | |
powered JS and SASS powered CSS with YUI compression all via the magic of rack. | |
Ignore the number prefixes on each file. This is just to ensure proper order in the Gist. |
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
question_id | Answer1 | Answer2 | Answer3 | Answer4 | |
1 5.0 2.5 1.5 3.5 |
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
AlgebraPhrase.all.each do |d| | |
question_data = { | |
:question_type => d.question_type, | |
:question_number => d.question_number.to_i, | |
:question_text => d.question_text, | |
:strand_num => d.strand_number | |
} | |
question = Question.create!(question_data) | |
for i in (1..4) |
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
ddam@Hera:~/dev/normes/prova (develop): $> cuke -p wip | |
Using the wip profile... | |
Feature: Manage custom exams | |
As a teacher | |
I should be able to manage custom exams by creating, viewing, deleting and assigning them to students | |
@javascript @wip | |
Scenario: View custom exam history # features/teacher_can_manage_custom_exams.feature:17 | |
Given the following Teacher: # features/step_definitions/fabrication_steps.rb:69 | |
| username | teacher | |
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 bash | |
echo "Fixing Samba..." | |
echo "[default]" > ~/Library/Preferences/nsmb.conf | |
echo "streams=no" >> ~/Library/Preferences/nsmb.conf | |
echo "Removing System Gems..." | |
rm -r /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 | |
gem update --system | |
gem clean |
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
#!/bin/bash | |
echo "Updating Packages..." | |
apt-get -qq -y update | |
echo "Installing Vim..." | |
apt-get -qq -y install vim-gnome | |
echo "Installing Utilities..." | |
apt-get -qq -y install curl bison build-essential zlib1g-dev libssl-dev libreadline5-dev libxml2-dev |
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
import java.util.Scanner; | |
import java.io.*; | |
public class Student | |
{ | |
private int id; | |
private String name; | |
Student(int studentId, String studentName){ | |
id = studentId; |
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
-- ---------------------------- | |
-- Table structure for "customers" | |
-- ---------------------------- | |
CREATE TABLE "customers" ( "c_id" NUMBER NOT NULL, "name" CHAR(10BYTE) NOT NULL, "phone" CHAR(13BYTE), "email" CHAR(15BYTE)); | |
-- ---------------------------- | |
-- Table structure for "furniture" | |
-- ---------------------------- | |
CREATE TABLE "furniture" ( "f_id" NUMBER NOT NULL, "category" CHAR(20BYTE) NOT NULL, "style" CHAR(15BYTE) NOT NULL, "price" NUMBER(5,2) NOT NULL, CONSTRAINT "style" CHECK ("style" in ('modern', 'rustic', 'traditional')) ENABLE); |
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
ORG 0 | |
MOV P1, #0H | |
START: | |
JB P2.7, DIXON | |
JB P2.6, COLLEGE | |
NONE: | |
MOV P1, #0H |