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
// This file is part of rgtk. | |
// | |
// rgtk is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU Lesser General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
// rgtk is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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 <linux/init.h> | |
#include <linux/module.h> | |
#include <linux/fs.h> | |
#include <linux/cdev.h> | |
static int major = 0; | |
module_param(major, int, 0); | |
static int nb_dev = 1; | |
module_param(nb_dev, int, 0); |
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
macro_rules! impl_GObjectFunctions( | |
($gtk_struct:ident, $ffi_type:ident) => ( | |
pub fn get_pointer(&self) -> *mut ffi::$ffi_type { | |
self.pointer | |
} | |
pub fn wrap_pointer(pointer: *mut ffi::$ffi_type) -> $gtk_struct { | |
$gtk_struct { | |
pointer: pointer | |
} |
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 <linux/init.h> | |
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/kthread.h> | |
#include <linux/mutex.h> | |
#include <linux/semaphore.h> | |
#include <linux/delay.h> | |
#include <linux/errno.h> |
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
#!/bin/sh | |
cd test | |
haxe BelugaTest.hxml && (sudo cp -rf bin/php/* /var/www/html/ && echo "done !") || echo "error !" | |
cd .. |
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 <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <netinet/ip.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> | |
#include <net/if.h> | |
#include <unistd.h> | |
#include <stdio.h> |
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 <linux/init.h> | |
#include <linux/module.h> | |
#include <linux/netdevice.h> | |
#include <linux/ip.h> | |
#include <linux/in.h> | |
#include <linux/net.h> | |
#include <linux/mm.h> | |
#include <linux/mman.h> |
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
# Normal Colors | |
Black='\e[0;30m' # Black | |
Red='\e[0;31m' # Red | |
Green='\e[0;32m' # Green | |
Yellow='\e[0;33m' # Yellow |
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
// Copyright 2013-2015, The Rust-GNOME Project Developers. | |
// See the COPYRIGHT file at the top-level directory of this distribution. | |
// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT> | |
//! TreeSortable is an interface to be implemented by tree models which support sorting. The | |
//! TreeView uses the methods provided by this interface to sort the model. | |
use ffi; | |
use glib::{to_bool}; | |
use std::ptr; |
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
fn csv_line(input: &[u8]) -> IResult<&[u8], Vec<&[u8]> { terminated!(input, separated_list!(filter!(apply!(check_characters, b"\n\r,")), not_line_ending), line_ending)) } |
OlderNewer