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
| cask 'uarm' do | |
| version '1.0-beta' | |
| sha256 '978c4b46972810d618fdce98e7f833c69c1a0657ea254695032b372ba5e048c6' | |
| url 'https://github.com/MartelliEnrico/uARM/archive/master.zip' | |
| name 'uarm' | |
| homepage 'http://mellotanica.github.io/uARM/' | |
| license :unknown | |
| installer :script => "install.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
| #pragma once | |
| #define defer_(x) \ | |
| void _dtor_##x(); \ | |
| int __attribute__((cleanup(_dtor_##x))) _dtorV_##x; \ | |
| void _dtor_##x() | |
| #define defer__(x) defer_(x) | |
| #define defer defer__(__COUNTER__) |
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
| /* cliTCP.c spedisce stringa, riceve stringa traslata | |
| su SunOS compilare con gcc -o cliTCP.c -lsocket -lnsl cliTCP.c | |
| su linux gcc -o cliTCP cliTCP.c | |
| eseguire ad esempio su 137.204.72.49 lanciando la seguente riga di comandi | |
| cliTCP 130.136.2.7 5001 | |
| */ | |
| #include <unistd.h> | |
| #include <stdio.h> | |
| #include <stdlib.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
| <android.support.design.widget.CoordinatorLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:theme="@style/PenPalTheme" | |
| android:fitsSystemWindows="true" | |
| tools:context=".MainActivity"> |
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
| var animate = function() { | |
| var t = {delay: 0,duration: 400,easing: "0.645 0.045 0.355, 1"}, e = function() { | |
| return Array.prototype.includes ? function(t, e) { | |
| return t.includes(e) | |
| } : function(t, e) { | |
| return t.some(function(t) { | |
| return t === e | |
| }) | |
| } | |
| }(), n = function() { |
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
| class Data { | |
| protected: | |
| int day_, month_, year_; | |
| bool valid_; | |
| bool isLeapYear(int year) | |
| { | |
| return year % 4 == 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
| #!/bin/bash | |
| CMD="env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh; | |
| brew update; brew upgrade; brew cleanup; | |
| composer self-update; composer global update; homestead update" | |
| if [ "$1" = "-b" ]; then | |
| > ~/.upgrade.log | |
| eval "( $CMD ) >~/.upgrade.log 2>&1 &" | |
| else | |
| eval $CMD |
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 | |
| function _filterEmail($email) | |
| { | |
| $rule = array("\r" => '', "\n" => '', "\t" => '', '"' => '', ',' => '', '<' => '', '>' => ''); | |
| return strtr($email, $rule); | |
| } | |
| function _filterName($name) |
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 | |
| use Illuminate\Database\Eloquent\Model as Eloquent; | |
| class Model extends Eloquent { | |
| public function scopeNext($query) | |
| { | |
| $id = $this->getKeyName(); | |
| $query = $this->newQuery(); |